|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
org.ops4j.pax.reflector.impl.RemoteReflectorImpl
public final class RemoteReflectorImpl
| Field Summary |
|---|
| Fields inherited from class java.rmi.server.RemoteObject |
|---|
ref |
| Constructor Summary | |
|---|---|
RemoteReflectorImpl(ReflectorService localReflector)
|
|
| 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. |
| Methods inherited from class java.rmi.server.UnicastRemoteObject |
|---|
clone, exportObject, exportObject, exportObject, unexportObject |
| Methods inherited from class java.rmi.server.RemoteServer |
|---|
getClientHost, getLog, setLog |
| Methods inherited from class java.rmi.server.RemoteObject |
|---|
equals, getRef, hashCode, toString, toStub |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RemoteReflectorImpl(ReflectorService localReflector)
throws java.rmi.RemoteException
java.rmi.RemoteException| Method Detail |
|---|
public java.lang.String getMember(java.lang.String membername)
throws ReflectionException,
java.rmi.RemoteException
objectname argument.
getMember in interface RemoteReflectormembername - The name of the object of interested.
ReflectionException - if the member does not exist.
java.rmi.RemoteException - if a network problem has occurred.
public java.lang.Object getMemberObject(java.lang.String membername)
throws ReflectionException,
java.rmi.RemoteException
getMemberObject in interface RemoteReflectormembername - 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.
public void setMember(java.lang.String membername,
java.lang.String value)
throws ReflectionException,
java.rmi.RemoteException
value to the member identified by the membername argument.
setMember in interface RemoteReflectormembername - 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.
public void setMemberObject(java.lang.String membername,
java.lang.Object value)
throws ReflectionException,
java.rmi.RemoteException
value to the member identified by the membername argument.
setMemberObject in interface RemoteReflectormembername - 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.
public 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.
getMemberNames in interface RemoteReflectormembername - 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.
public java.lang.String[] getMemberNames(java.lang.Object object)
throws java.rmi.RemoteException
object.
getMemberNames in interface RemoteReflectorobject - The Java instance to query for its members.
object.
java.rmi.RemoteException - if a network problem has occurred.
public java.lang.String getMemberClassName(java.lang.String objectname)
throws ReflectionException,
java.rmi.RemoteException
objectname argument.
getMemberClassName in interface RemoteReflectorobjectname - 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.
public boolean isMemberSettable(java.lang.String objectname)
throws ReflectionException,
java.rmi.RemoteException
isMemberSettable in interface RemoteReflectorobjectname - 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.
public 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']".
extractContainerPart in interface RemoteReflectorobjectname - The objectname to be worked upon.
objectname.
java.rmi.RemoteException - if a network problem has occurred.
public 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".
extractNamePart in interface RemoteReflectorobjectname - 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 | |||||||||