|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object p2pcm.ComponentUtil
public class ComponentUtil
This class provides static methods for deploying / undeploying components in the network
Constructor Summary | |
---|---|
ComponentUtil()
|
Method Summary | |
---|---|
static ComponentInterface |
createInnerObject(java.lang.String implClass,
java.lang.String instance,
java.lang.Object... params)
Factory method used for creating an inner object within a component Useful for components which may delegate some view implementations to other classes / objects |
static void |
deployComponent(java.net.URL componentResource)
Method for deploying a component on the structured peer-to-peer overlay network |
static ComponentFactory |
getComponentFactory(java.lang.String componentLocation)
Method for getting any component's factory instance |
static void |
unDeployComponent(java.lang.String componentID)
Method for undeploying a Dermi component |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ComponentUtil()
Method Detail |
---|
public static void deployComponent(java.net.URL componentResource) throws ComponentDeploymentException, dermi.exception.ComponentMetadataIncompleteException
componentResource
- URL Component's URL
java.lang.Exception
ComponentDeploymentException
dermi.exception.ComponentMetadataIncompleteException
public static void unDeployComponent(java.lang.String componentID) throws ComponentDeploymentException
componentID
- String Component's identifier
ComponentDeploymentException
- If component cannot be unregistered correctlypublic static ComponentFactory getComponentFactory(java.lang.String componentLocation) throws ComponentNotRegisteredException, ComponentInitializationException
componentLocation
- String URL-like component locator
ComponentNotRegisteredException
- Thrown if the component was not previously deployed on the overlay network
ComponentInitializationException
- Thrown if it is impossible to initialize the component's factorypublic static ComponentInterface createInnerObject(java.lang.String implClass, java.lang.String instance, java.lang.Object... params) throws ComponentInitializationException
implClass
- String Implementation class nameinstance
- String Instance nameparams
- Object[] Object creation arguments
ComponentInitializationException
- If component (inner object) cannot be initialized
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |