org.oddjob.arooa.reflect
Class DefaultRegistryLookup
java.lang.Object
org.oddjob.arooa.reflect.DefaultRegistryLookup
- All Implemented Interfaces:
- RegistryLookup
- public class DefaultRegistryLookup
- extends java.lang.Object
- implements RegistryLookup
|
Method Summary |
java.lang.Object |
getProperty(java.lang.String fullName)
|
void |
setProperty(java.lang.String property,
java.lang.Object value)
Set a property on a Component in the registry. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultRegistryLookup
public DefaultRegistryLookup(java.lang.String elementTag,
ArooaContext context)
DefaultRegistryLookup
public DefaultRegistryLookup(ComponentRegistry registry)
DefaultRegistryLookup
public DefaultRegistryLookup(ComponentRegistry registry,
org.apache.commons.beanutils.BeanUtilsBean bub)
setProperty
public void setProperty(java.lang.String property,
java.lang.Object value)
- Set a property on a Component in the registry. This method
will resolve the valueFor before setting the property. This might
not be the desired result for things like variables. The
way round this would be to create a dummy type ProxyType which
the DynaClass of VariablesJob, SetJob etc would return and which
valueFor methods would recognize and would return themselves as the
valueFor - but that's a lot of work and propbably isn't requied
much.
This method should really be a lot better at resolving the types of
nested beans for property conversion. This method only goes as far as
resolving past component id so the correct type of component is used.
- Specified by:
setProperty in interface RegistryLookup
getProperty
public java.lang.Object getProperty(java.lang.String fullName)
- Specified by:
getProperty in interface RegistryLookup