org.apache.log4j.config

Class PropertyGetter


public class PropertyGetter
extends Object

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

Nested Class Summary

static interface
PropertyGetter.PropertyCallback

Field Summary

protected static Object[]
NULL_ARG
protected Object
obj
protected 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)
protected boolean
isHandledType(Class type)

Field Details

NULL_ARG

protected static final Object[] NULL_ARG

obj

protected Object obj

props

protected PropertyDescriptor[] props

Constructor Details

PropertyGetter

public PropertyGetter(Object obj)
            throws IntrospectionException
Parameters:
obj - the object for which to set properties

Method Details

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)

Copyright 2000-2005 Apache Software Foundation.