|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Provider holder.
Method Summary | |
void |
addStateListener(StateListener listener)
Add a state listener to the control. |
State |
apply(String key)
Apply a transition to the instance. |
Object |
exec(String name,
Object[] args)
Invoke an operation on the instance. |
Provider |
getParent()
Return a parent provider. |
State |
getState()
Returns the current state of the control. |
Status |
getStatus()
Return the current status of the provider. |
Object |
getValue(boolean isolate)
Return the runtime value associated with this instance. |
Object |
invoke(String method,
Object[] args)
Invoke an operation on the instance. |
Provider |
lookup(Service service)
Return a provider capable of supporting the requested service. |
void |
removeStateListener(StateListener listener)
Remove a state listener from the control. |
Method Detail |
public Provider getParent() throws RemoteException
RemoteException
- if a remote I/O occurspublic Status getStatus() throws RemoteException
RemoteException
- if a remote I/O occurspublic Provider lookup(Service service) throws ServiceNotFoundException, RemoteException
service
- the service descriptor
ServiceNotFoundException
- if no component could found
RemoteException
- if a remote I/O occurspublic State getState() throws RemoteException
RemoteException
- if a remote I/O error occurspublic void addStateListener(StateListener listener) throws RemoteException
listener
- the state listener
RemoteException
- if a remote I/O error occurspublic void removeStateListener(StateListener listener) throws RemoteException
listener
- the state listener
RemoteException
- if a remote I/O error occurspublic Object getValue(boolean isolate) throws RemoteException
isolate
- if TRUE the value returned is a proxy exposing the
service interfaces declared by the component type otherwise
the instance value is returned.
RemoteException
- if a remote I/O error occurspublic State apply(String key) throws UnknownTransitionException, InvocationTargetException, RemoteException
key
- the transition name
UnknownTransitionException
- if the supplied key does not map to an available transition
InvocationTargetException
- if an invocation error occurs
RemoteException
- if a remote I/O error occurspublic Object exec(String name, Object[] args) throws UnknownOperationException, InvocationTargetException, RemoteException
name
- the operation nameargs
- operation arguments
UnknownOperationException
- if the supplied key does not map to an available operation
InvocationTargetException
- if an invocation error occurs
RemoteException
- if a remote I/O error occurspublic Object invoke(String method, Object[] args) throws UnknownOperationException, InvocationTargetException, IllegalStateException, RemoteException
method
- the operation nameargs
- operation arguments
UnknownOperationException
- if the supplied key does not map to an available operation
InvocationTargetException
- if an invocation error occurs
IllegalStateException
- if the component state does not expose the operation
RemoteException
- if a remote I/O error occurs
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |