org.apache.geronimo.gbean
Class DynamicGBeanDelegate
java.lang.Object
org.apache.geronimo.gbean.DynamicGBeanDelegate
- All Implemented Interfaces:
- DynamicGBean
public class DynamicGBeanDelegate
- extends Object
- implements DynamicGBean
Wraps an Object
in a DynamicGBean
facade.
Method Summary |
void |
addAll(Object target)
|
void |
addGetter(Object target,
Method method)
|
void |
addGetter(String name,
Object target,
Method method)
|
void |
addOperation(Object target,
Method method)
|
void |
addSetter(Object target,
Method method)
|
void |
addSetter(String name,
Object target,
Method method)
|
Object |
getAttribute(String name)
|
String[] |
getProperties()
Gets all properties (with both a getter and setter), in the form of
propertyName |
Class |
getPropertyType(String name)
|
Object |
invoke(String name,
Object[] arguments,
String[] types)
|
void |
setAttribute(String name,
Object value)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getters
protected final Map getters
setters
protected final Map setters
operations
protected final Map operations
DynamicGBeanDelegate
public DynamicGBeanDelegate()
addAll
public void addAll(Object target)
addGetter
public void addGetter(Object target,
Method method)
addGetter
public void addGetter(String name,
Object target,
Method method)
addSetter
public void addSetter(Object target,
Method method)
addSetter
public void addSetter(String name,
Object target,
Method method)
addOperation
public void addOperation(Object target,
Method method)
getAttribute
public Object getAttribute(String name)
throws Exception
- Specified by:
getAttribute
in interface DynamicGBean
- Throws:
Exception
setAttribute
public void setAttribute(String name,
Object value)
throws Exception
- Specified by:
setAttribute
in interface DynamicGBean
- Throws:
Exception
invoke
public Object invoke(String name,
Object[] arguments,
String[] types)
throws Exception
- Specified by:
invoke
in interface DynamicGBean
- Throws:
Exception
getProperties
public String[] getProperties()
- Gets all properties (with both a getter and setter), in the form of
propertyName
getPropertyType
public Class getPropertyType(String name)
Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.