⇒ Index (Frames) |  ⇒ Index (No Frames) |  ⇒ Package |  ⇒ Package Tree |  ⇒ Full Tree 
org.apache.log4j.config

Class PropertyGetter

java.lang.Object
|
+--org.apache.log4j.config.PropertyGetter


public class PropertyGetter
extends java.lang.Object

Used for inferring configuration information for a log4j's component.
Author:
Anders Kristensen

Field Summary

static Object[]

NULL_ARG

Used for inferring configuration information for a log4j's component.

Object

obj

PropertyDescriptor[]

props

Constructor Summary

PropertyGetter(Object obj)

Create a new PropertyGetter for the specified Object.

Method Summary

static void

getProperties(Object obj, PropertyGetter.PropertyCallback callback, String prefix)

void

getProperties(PropertyGetter.PropertyCallback callback, String prefix)

boolean

isHandledType(Class type)

Field Details

NULL_ARG

protected static final Object[] NULL_ARG

Used for inferring configuration information for a log4j's component.

Author:
Anders Kristensen

obj

protected Object obj


props

protected PropertyDescriptor[] props

Constructor Details

PropertyGetter

public PropertyGetter(Object obj)

Create a new PropertyGetter for the specified Object. This is done in prepartion for invoking .getProperties(PropertyGetter.PropertyCallback, String) one or more times.

Parameters:
obj - the object for which to set properties

Method Details

getProperties

public static void getProperties(Object obj, PropertyGetter.PropertyCallback callback, String prefix)

Parameters:
obj
callback
prefix

getProperties

public void getProperties(PropertyGetter.PropertyCallback callback, String prefix)

Parameters:
callback
prefix

isHandledType

protected boolean isHandledType(Class type)

Parameters:
type