Package org.apache.log4j.config
Class PropertyGetter
- java.lang.Object
-
- org.apache.log4j.config.PropertyGetter
-
public class PropertyGetter extends Object
Used for inferring configuration information for a log4j's component.- Author:
- Anders Kristensen
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePropertyGetter.PropertyCallback
-
Constructor Summary
Constructors Constructor Description PropertyGetter(Object obj)Create a new PropertyGetter for the specified Object.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidgetProperties(Object obj, PropertyGetter.PropertyCallback callback, String prefix)voidgetProperties(PropertyGetter.PropertyCallback callback, String prefix)protected booleanisHandledType(Class type)
-
-
-
Field Detail
-
NULL_ARG
protected static final Object[] NULL_ARG
-
obj
protected Object obj
-
props
protected PropertyDescriptor[] props
-
-
Constructor Detail
-
PropertyGetter
public PropertyGetter(Object obj) throws IntrospectionException
Create a new PropertyGetter for the specified Object. This is done in prepartion for invokinggetProperties(PropertyGetter.PropertyCallback, String)one or more times.- Parameters:
obj- the object for which to set properties- Throws:
IntrospectionException
-
-
Method Detail
-
getProperties
public static void getProperties(Object obj, PropertyGetter.PropertyCallback callback, String prefix)
-
getProperties
public void getProperties(PropertyGetter.PropertyCallback callback, String prefix)
-
isHandledType
protected boolean isHandledType(Class type)
-
-