public class ClassFieldMapper extends Object
Constructor and Description |
---|
ClassFieldMapper() |
Modifier and Type | Method and Description |
---|---|
HashMap<String,String> |
mapClassFields(Class<?> clazz)
The method uses reflection to find all fields that are mapped with the
LogElementMapping annotation then provides a HashMap mapping the field with the
formatting token. |
public HashMap<String,String> mapClassFields(Class<?> clazz) throws IllegalClassException
LogElementMapping
annotation then provides a HashMap mapping the field with the
formatting token.clazz
- the class.IllegalClassException
- when the class contains no fields annotated with LogElementMapping.Copyright © 2017 Jason "JRSofty" Reed. All rights reserved.