|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ops4j.pax.reflector.typehandlers.AbstractObjectTypeHandler
public abstract class AbstractObjectTypeHandler
Field Summary | |
---|---|
protected SystemSettings |
m_SystemSettings
|
Constructor Summary | |
---|---|
AbstractObjectTypeHandler()
|
Method Summary | |
---|---|
Class |
getMemberClass(Object container,
String memberName)
Returns the Class of the member. |
Object |
getMemberObject(Object container,
String memberName)
Returns the object that is assigned to the member of the provided container. |
protected void |
getNames(Set names,
Class clazz)
|
protected void |
getNames(Set names,
Object container)
|
SystemSettings |
getSystemSettings()
Returns the System Settings that has been set to the TypeHandler. |
boolean |
isMemberSettable(Object container,
String memberName)
Returns true if the member is settable. |
protected String[] |
packageNames(Set names)
|
void |
setMemberObject(Object container,
String member,
Object value)
Sets the member of a container to the provided value. |
void |
setSystemSettings(SystemSettings settings)
Sets the SystemSettings to this TypeHandler. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.ops4j.pax.reflector.spi.TypeHandler |
---|
canHandle, getMemberNames, getSeparator |
Field Detail |
---|
protected SystemSettings m_SystemSettings
Constructor Detail |
---|
public AbstractObjectTypeHandler()
Method Detail |
---|
public SystemSettings getSystemSettings()
getSystemSettings
in interface TypeHandler
public void setSystemSettings(SystemSettings settings)
setSystemSettings
in interface TypeHandler
settings
- The SystemSettings currently in use.protected void getNames(Set names, Object container)
protected String[] packageNames(Set names)
protected void getNames(Set names, Class clazz)
public Object getMemberObject(Object container, String memberName) throws ReflectionException
TypeHandler
getMemberObject
in interface TypeHandler
container
- The container that is being queried.memberName
- The name of the member for which the value is requested.
ReflectionException
- if a member with the provided name does not exist, or if
an exception is thrown while accessing the container.public void setMemberObject(Object container, String member, Object value) throws ReflectionException
TypeHandler
setMemberObject
in interface TypeHandler
container
- The container that is being queried.member
- The name of the member to have the value set to.value
- The value object to be assigned to the member of the container.
ReflectionException
- if a member with the provided name does not exist, or if
an exception is thrown while accessing the container.public Class getMemberClass(Object container, String memberName) throws ReflectionException
TypeHandler
The Class return is the type of the field or return type of the member and not the Class of the assigned object to that member.
getMemberClass
in interface TypeHandler
container
- The container that is being queried.memberName
- The member of the container, for which the Class is to be return.
ReflectionException
public boolean isMemberSettable(Object container, String memberName) throws ReflectionException
TypeHandler
isMemberSettable
in interface TypeHandler
container
- The container of interest.memberName
- The name of the member in the provided container to be checked for if it is settable.
ReflectionException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |