|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RemoteReflector
The RemoteReflector is not yet ready for usage, since we have some issue in the OSGi environment.
If you really need a RemoteReflector capability, you will need to create your own. See Creating EndPoint on the website for more details (if written by now).
| Method Summary | |
|---|---|
java.lang.String |
extractContainerPart(java.lang.String objectname)
Returns the container part of the objectname. |
java.lang.String |
extractNamePart(java.lang.String objectname)
Returns the Name part of the objectname. |
java.lang.String |
getMember(java.lang.String membername)
Returns the human readable form of the object instance traversed from the objectname argument. |
java.lang.String |
getMemberClassName(java.lang.String objectname)
Returns the name of the Class of the member identified by the objectname argument. |
java.lang.String[] |
getMemberNames(java.lang.Object object)
Returns all the membernames found in the object. |
java.lang.String[] |
getMemberNames(java.lang.String membername)
Returns all the membernames found in the member identified by membername argument. |
java.lang.Object |
getMemberObject(java.lang.String membername)
Returns the object of the member by the given membername. |
boolean |
isMemberSettable(java.lang.String objectname)
Checks with the member of the given objectname can be set to a value. |
void |
setMember(java.lang.String membername,
java.lang.String value)
Assigns the value to the member identified by the membername argument. |
void |
setMemberObject(java.lang.String membername,
java.lang.Object value)
Assigns the value to the member identified by the membername argument. |
| Method Detail |
|---|
java.lang.String getMember(java.lang.String membername)
throws ReflectionException,
java.rmi.RemoteException
objectname argument.
membername - The name of the object of interested.
ReflectionException - if the member does not exist.
java.rmi.RemoteException - if a network problem has occurred.
java.lang.Object getMemberObject(java.lang.String membername)
throws ReflectionException,
java.rmi.RemoteException
membername - The name of the object to traverse to and return.
ReflectionException - if the member does not exist.
java.rmi.RemoteException - if a network problem has occurred.
void setMember(java.lang.String membername,
java.lang.String value)
throws ReflectionException,
java.rmi.RemoteException
value to the member identified by the membername argument.
membername - The name of the member to be assigned a value.value - The value to be assigned to the member. For primitives, the value is converted according to
normal Java rules, but additionally a fully-qualified classname can be given, in which case
the reflector will try to instantiate such class through the default constructor, and if
successful assign the instance to the member.
ReflectionException - If the value is not assignable to the member type or the member does not exist.
java.rmi.RemoteException - if a network problem has occurred.
void setMemberObject(java.lang.String membername,
java.lang.Object value)
throws ReflectionException,
java.rmi.RemoteException
value to the member identified by the membername argument.
membername - The name of the member to be assigned a value.value - The value to be assigned to the member.
ReflectionException - If the value is not assignable to the member type.
java.rmi.RemoteException - if a network problem has occurred.
java.lang.String[] getMemberNames(java.lang.String membername)
throws ReflectionException,
java.rmi.RemoteException
membername argument.
If the membername is an empty string, all root object names are returned.
membername - The name of the member to query for its members.
membername.
ReflectionException - If the member identified by the membername does not exist.
java.rmi.RemoteException - if a network problem has occurred.
java.lang.String[] getMemberNames(java.lang.Object object)
throws java.rmi.RemoteException
object.
object - The Java instance to query for its members.
object.
java.rmi.RemoteException - if a network problem has occurred.
java.lang.String getMemberClassName(java.lang.String objectname)
throws ReflectionException,
java.rmi.RemoteException
objectname argument.
objectname - The name of the member to query for its Class.
ReflectionException - if the named object does not exist.
java.rmi.RemoteException - if a network problem has occurred.
boolean isMemberSettable(java.lang.String objectname)
throws ReflectionException,
java.rmi.RemoteException
objectname - The member to be tested if it can be set by a setMemberObject() method call.
objectname can be set.
ReflectionException - if the objectname does not identify an existing object reference.
java.rmi.RemoteException - if a network problem has occurred.
java.lang.String extractContainerPart(java.lang.String objectname)
throws java.rmi.RemoteException
This method must correctly return the container part of the full objectname. For instance; getContainerPart( "someRoot.Abc.Def" ), must return "someRoot.Abc", getContainerPart( "someRoot.Abc['Def']" ), must return "someRoot.Abc", and getContainerPart( "someRoot.Abc['Def'].Rst" ), must return "someRoot.Abc['Def']".
objectname - The objectname to be worked upon.
objectname.
java.rmi.RemoteException - if a network problem has occurred.
java.lang.String extractNamePart(java.lang.String objectname)
throws java.rmi.RemoteException
This method must correctly return the Name part of the full objectname. For instance; getContainerPart( "someRoot.Abc.Def" ), must return "Def", getContainerPart( "someRoot.Abc['Def']" ), must return "['Def']", and getContainerPart( "someRoot.Abc['Def'].Rst" ), must return "Rst".
objectname - The objectname to be worked upon.
objectname.
java.rmi.RemoteException - if a network problem has occurred.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||