|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ops4j.pax.reflector.typehandlers.AbstractObjectTypeHandler
org.ops4j.pax.reflector.typehandlers.ObjectTypeHandler
public final class ObjectTypeHandler
Field Summary |
---|
Fields inherited from class org.ops4j.pax.reflector.typehandlers.AbstractObjectTypeHandler |
---|
m_SystemSettings |
Constructor Summary | |
---|---|
ObjectTypeHandler()
|
Method Summary | |
---|---|
boolean |
canHandle(Object container)
Query if this TypeHandler can deal with the container argument. |
String[] |
getMemberNames(Object container)
Returns the names of all the accessible members in the container. |
String |
getSeparator()
Returns the separator string between container part and the name part. |
Methods inherited from class org.ops4j.pax.reflector.typehandlers.AbstractObjectTypeHandler |
---|
getMemberClass, getMemberObject, getNames, getNames, getSystemSettings, isMemberSettable, packageNames, setMemberObject, setSystemSettings |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ObjectTypeHandler()
Method Detail |
---|
public boolean canHandle(Object container)
container
argument.
If this TypeHandler is not able to handle the provided container
the ReflectorProvider
implementation must continue to query the lower priority TypeHandlers. It is important that there is
a TypeHandler that can handle "everything else", if this query falls through all the way.
The implementation in this class always return true
as this is a
TypeHandler intended for the default/unhandled case to be populate to the ReflectionProvider
first.
container
- The container that is being tested.
public String[] getMemberNames(Object container)
The names returned are in such format that they can be appended to the container, after a getSeparator() string.
This TypeHandler uses the Reflection API and queries for all public fields and public getter methods. If it finds public fields that starts with "m_" then those two characters are stripped from the name.
container
- the container to query for the names.
public String getSeparator()
This implementation returns a dot.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |