|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object p2pcm.ComponentFactory
public abstract class ComponentFactory
This class models the component's factory. It provides the necessary methods for instantiating new component instances
Constructor Summary | |
---|---|
ComponentFactory()
Void constructor |
|
ComponentFactory(java.lang.String componentURL)
Default factory constructor: Component's URL in DOLR must be known |
Method Summary | |
---|---|
java.util.Hashtable |
anycallEventArrived(java.util.Hashtable evt)
Callback method executed when an anycall event is received [IT IS CURRENTLY UNUSED] |
ComponentInterface |
createInstance(java.lang.String interf,
java.lang.String instance)
Creates a component's instance. |
ComponentInterface |
createInstance(java.lang.String interf,
java.lang.String instance,
java.lang.Object... args)
Creates a component's instance. |
void |
eventArrived(java.util.Hashtable evt)
Callback method executed when an event regarding the factory is received |
java.util.Properties |
getComponentMetadata()
This method returns the component's metadata |
java.lang.String |
getComponentURL()
This method returns the component's URL |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ComponentFactory()
public ComponentFactory(java.lang.String componentURL) throws dermi.exception.RemoteException
componentURL
- String Component's URL
dermi.exception.RemoteException
Method Detail |
---|
public ComponentInterface createInstance(java.lang.String interf, java.lang.String instance) throws InterfaceNotFoundException, dermi.exception.RemoteException
interf
- String Component's interface to be returned (component's desired view)instance
- String Component's instance identifier
InterfaceNotFoundException
- If the specified interface cannot be found
dermi.exception.RemoteException
- If something else goes wrong ;-)public ComponentInterface createInstance(java.lang.String interf, java.lang.String instance, java.lang.Object... args) throws InterfaceNotFoundException, dermi.exception.RemoteException
interf
- String Component's interface to be returned (component's desired view)instance
- String Component's instance identifierargs
- Object[] Component's constructor arguments
InterfaceNotFoundException
- If the specified interface cannot be found
dermi.exception.RemoteException
- If something else goes wrong ;-)public java.lang.String getComponentURL()
public java.util.Properties getComponentMetadata()
public void eventArrived(java.util.Hashtable evt)
eventArrived
in interface dermi.listener.RemoteEventListener
evt
- Hashtable Event datapublic java.util.Hashtable anycallEventArrived(java.util.Hashtable evt) throws dermi.exception.UnmatchedAnycallMethodException
anycallEventArrived
in interface dermi.listener.RemoteEventListener
evt
- Hashtable Event data
dermi.exception.UnmatchedAnycallMethodException
- Thrown whenever the specified method was not an anycall
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |