|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ebmwebsourcing.easycommons.sca.helper.impl.SCAHelper
public class SCAHelper
This class helps fractal management.
| Field Summary | |
|---|---|
static java.lang.String |
CORE_EXPLORER_COMPOSITE
the petals component name. |
static java.lang.String |
EXPLORER_COMPOSITE
the explorer composite component name. |
static java.lang.String |
FCAPPL_BINDING
the FCAPPL binding name. |
| Method Summary | |
|---|---|
void |
addBindings(org.objectweb.fractal.api.Component component,
java.util.List<Binding> listOfBindings)
Add a component in a composite component. |
void |
addComponent(org.objectweb.fractal.api.Component newComponent,
org.objectweb.fractal.api.Component parentComponent,
java.util.List<Binding> listOfBindings)
Add a component in a composite component. |
void |
changeName(org.objectweb.fractal.api.Component comp,
java.lang.String name)
Change the name of the component |
org.objectweb.fractal.api.Component |
createExplorer(java.lang.String fractalName,
java.lang.String fractalDefinition)
Create an explorer for the specified component (the component requires an explicit interface named fcAppl of type org.objectweb.fractal.api.Component). |
org.objectweb.fractal.api.Component |
createNewComponent(java.lang.String name,
java.util.Map<java.lang.Object,java.lang.Object> ctxt)
Create a new component. |
void |
deleteAllClientBindingsOfComponent(org.objectweb.fractal.api.Component component)
Delete all client binding of component. |
void |
deleteBindings(org.objectweb.fractal.api.Component component,
java.util.List<Binding> listOfBindings)
Delete a component in a composite component. |
void |
deleteComponent(org.objectweb.fractal.api.Component oldComponent)
Delete a component in a composite component. |
void |
deleteComponent(org.objectweb.fractal.api.Component oldComponent,
org.objectweb.fractal.api.Component parentComponent,
java.util.List<Binding> listOfBindings)
Delete a component in a composite component. |
void |
deleteLinkWithAnItfClientOfComponent(org.objectweb.fractal.api.Component component,
java.lang.String itfCLient)
Delete all client binding of component. |
java.util.List<org.objectweb.fractal.api.Component> |
getAllSubComponents(org.objectweb.fractal.api.Component parent)
|
org.objectweb.fractal.api.Interface |
getBoundInterface(org.oasisopen.sca.ServiceReference<?> sr)
Return the server interface bound to the specified service reference. |
java.util.List<org.objectweb.fractal.api.Component> |
getClientComponentsLinkedToServerInterfacesOfComponent(org.objectweb.fractal.api.Component parentComponent,
org.objectweb.fractal.api.Interface itfOfComponent)
A utility function allowing to get components interface binding to the client interface of the component controller. |
org.objectweb.fractal.api.Component |
getComponentByInterface(org.objectweb.fractal.api.Component parent,
org.objectweb.fractal.api.Interface itf,
java.lang.String interfaceName)
A utility function allowing to get a component from an interface |
org.objectweb.fractal.api.Component |
getComponentByInterface(org.objectweb.fractal.api.Component parent,
org.oasisopen.sca.ServiceReference<?> sr,
java.lang.String interfaceName)
|
java.util.List<org.objectweb.fractal.api.Component> |
getComponents(org.objectweb.fractal.api.Component parent)
A utility function allowing to get a component from any content controller. |
java.util.List<org.objectweb.fractal.api.Component> |
getComponentsByName(org.objectweb.fractal.api.Component parent,
java.lang.String name)
A utility function allowing to get a component from any content controller. |
org.objectweb.fractal.api.Component |
getFirstComponentByName(org.objectweb.fractal.api.Component parent,
java.lang.String name)
A utility function allowing to get the first component with the given name. |
org.objectweb.fractal.api.control.LifeCycleController |
getLifeCycleControllerByName(org.objectweb.fractal.api.Component parent,
java.lang.String name)
A utility function allowing to get a component LifeCycleController from a content controller. |
java.util.Map<java.lang.String,java.lang.Object> |
getListOfBindings(org.objectweb.fractal.api.Component component)
|
java.util.List<java.lang.String> |
getListOfBinds(org.objectweb.fractal.api.Component component)
|
java.lang.String |
getName(org.objectweb.fractal.api.Component comp)
|
org.objectweb.fractal.api.Component |
getParent(org.objectweb.fractal.api.Component childrenComponent)
|
static SCAHelper |
getSCAHelper()
Get a SCAHelper instance. |
java.util.Map<java.lang.String,org.objectweb.fractal.api.Interface> |
getServerInterfacesLinkedToClientInterfacesOfComponent(org.objectweb.fractal.api.Component component)
A utility function allowing to get components interface binding to the client interface of the component controller. |
boolean |
isAlreadyBind(org.objectweb.fractal.api.Component component,
java.lang.String clientItfName,
org.objectweb.fractal.api.Interface itf)
|
boolean |
isAlreadyBind(org.objectweb.fractal.api.Component component,
java.lang.String clientItfName,
org.oasisopen.sca.ServiceReference<?> sr)
|
boolean |
isBinded(org.objectweb.fractal.api.Component component,
java.lang.String clientItfName)
|
boolean |
isStarted(org.objectweb.fractal.api.Component comp)
|
boolean |
startComponent(org.objectweb.fractal.api.Component component)
A utility function to start the given fractal component. |
boolean |
startComponentAndSubComponents(org.objectweb.fractal.api.Component component)
|
void |
stopAllSubComponents(org.objectweb.fractal.api.Component composite)
A utility function to stop the given fractal composite. |
boolean |
stopComponent(org.objectweb.fractal.api.Component component)
A utility function to stop the given fractal component. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String EXPLORER_COMPOSITE
public static final java.lang.String CORE_EXPLORER_COMPOSITE
public static final java.lang.String FCAPPL_BINDING
| Method Detail |
|---|
public static SCAHelper getSCAHelper()
throws com.ebmwebsourcing.easycommons.sca.helper.api.SCAException
ADLException - :
occurs when it is impossible to get the fractal explorer
com.ebmwebsourcing.easycommons.sca.helper.api.SCAException
public org.objectweb.fractal.api.Component createNewComponent(java.lang.String name,
java.util.Map<java.lang.Object,java.lang.Object> ctxt)
throws com.ebmwebsourcing.easycommons.sca.helper.api.SCAException
name - The class name of the component
ADLException - :
occurs when the framework of Petals is incorrect
com.ebmwebsourcing.easycommons.sca.helper.api.SCAException
public void changeName(org.objectweb.fractal.api.Component comp,
java.lang.String name)
throws com.ebmwebsourcing.easycommons.sca.helper.api.SCAException
name -
com.ebmwebsourcing.easycommons.sca.helper.api.SCAExceptionpublic java.lang.String getName(org.objectweb.fractal.api.Component comp)
public java.util.List<org.objectweb.fractal.api.Component> getComponentsByName(org.objectweb.fractal.api.Component parent,
java.lang.String name)
parentContentController - parentContentControllername - component name
public org.objectweb.fractal.api.Component getFirstComponentByName(org.objectweb.fractal.api.Component parent,
java.lang.String name)
parentContentController - parentContentControllername - component name
public org.objectweb.fractal.api.Interface getBoundInterface(org.oasisopen.sca.ServiceReference<?> sr)
sr - the service reference
public org.objectweb.fractal.api.Component getComponentByInterface(org.objectweb.fractal.api.Component parent,
org.oasisopen.sca.ServiceReference<?> sr,
java.lang.String interfaceName)
public org.objectweb.fractal.api.Component getComponentByInterface(org.objectweb.fractal.api.Component parent,
org.objectweb.fractal.api.Interface itf,
java.lang.String interfaceName)
parentContentController - parentContentControllername - component name
public java.util.List<org.objectweb.fractal.api.Component> getComponents(org.objectweb.fractal.api.Component parent)
parentContentController - parentContentControllername - component name
public java.util.List<org.objectweb.fractal.api.Component> getAllSubComponents(org.objectweb.fractal.api.Component parent)
public java.util.Map<java.lang.String,org.objectweb.fractal.api.Interface> getServerInterfacesLinkedToClientInterfacesOfComponent(org.objectweb.fractal.api.Component component)
parentContentController - parentContentControllername - component name
public java.util.List<org.objectweb.fractal.api.Component> getClientComponentsLinkedToServerInterfacesOfComponent(org.objectweb.fractal.api.Component parentComponent,
org.objectweb.fractal.api.Interface itfOfComponent)
parentContentController - parentContentControllername - component name
public org.objectweb.fractal.api.control.LifeCycleController getLifeCycleControllerByName(org.objectweb.fractal.api.Component parent,
java.lang.String name)
throws com.ebmwebsourcing.easycommons.sca.helper.api.SCAException
parentContentController - the parent content controllername - the name of the component
com.ebmwebsourcing.easycommons.sca.helper.api.SCAExceptionpublic boolean isStarted(org.objectweb.fractal.api.Component comp)
public boolean startComponent(org.objectweb.fractal.api.Component component)
throws com.ebmwebsourcing.easycommons.sca.helper.api.SCAException
component - the fractal component
org.objectweb.fractal.api.NoSuchInterfaceException - :
impossible to stop the component
org.objectweb.fractal.api.control.IllegalLifeCycleException - :
impossible to stop the component
com.ebmwebsourcing.easycommons.sca.helper.api.SCAException
public boolean startComponentAndSubComponents(org.objectweb.fractal.api.Component component)
throws com.ebmwebsourcing.easycommons.sca.helper.api.SCAException
com.ebmwebsourcing.easycommons.sca.helper.api.SCAException
public boolean stopComponent(org.objectweb.fractal.api.Component component)
throws com.ebmwebsourcing.easycommons.sca.helper.api.SCAException
component - the fractal component to stop
org.objectweb.fractal.api.NoSuchInterfaceException - :
impossible to stop the component
org.objectweb.fractal.api.control.IllegalLifeCycleException - :
impossible to stop the component
com.ebmwebsourcing.easycommons.sca.helper.api.SCAException
public void stopAllSubComponents(org.objectweb.fractal.api.Component composite)
throws com.ebmwebsourcing.easycommons.sca.helper.api.SCAException
composite -
org.objectweb.fractal.api.NoSuchInterfaceException
org.objectweb.fractal.api.control.IllegalLifeCycleException
org.objectweb.fractal.api.NoSuchInterfaceException
com.ebmwebsourcing.easycommons.sca.helper.api.SCAException
public void addComponent(org.objectweb.fractal.api.Component newComponent,
org.objectweb.fractal.api.Component parentComponent,
java.util.List<Binding> listOfBindings)
throws com.ebmwebsourcing.easycommons.sca.helper.api.SCAException
newComponent - The new componentparentComponent - The parent componentlistOfBindings - the list of binding to create between this new component and
the others
org.objectweb.fractal.api.NoSuchInterfaceException - :
Impossible to add a component
org.objectweb.fractal.api.control.IllegalLifeCycleException - :
Impossible to add a component
org.objectweb.fractal.api.control.IllegalContentException - :
Impossible to add a component
org.objectweb.fractal.api.control.IllegalBindingException - :
Impossible to add a component
com.ebmwebsourcing.easycommons.sca.helper.api.SCAException
public void deleteComponent(org.objectweb.fractal.api.Component oldComponent)
throws com.ebmwebsourcing.easycommons.sca.helper.api.SCAException
oldComponent - The component to deleteparentComponent - The parent componentlistOfBindings - the list of binding to create between this new component and
the others
org.objectweb.fractal.api.NoSuchInterfaceException - :
Impossible to add a component
org.objectweb.fractal.api.control.IllegalLifeCycleException - :
Impossible to add a component
org.objectweb.fractal.api.control.IllegalContentException - :
Impossible to add a component
org.objectweb.fractal.api.control.IllegalBindingException - :
Impossible to add a component
com.ebmwebsourcing.easycommons.sca.helper.api.SCAException
public void deleteComponent(org.objectweb.fractal.api.Component oldComponent,
org.objectweb.fractal.api.Component parentComponent,
java.util.List<Binding> listOfBindings)
throws com.ebmwebsourcing.easycommons.sca.helper.api.SCAException
oldComponent - The component to deleteparentComponent - The parent componentlistOfBindings - the list of binding to create between this new component and
the others
org.objectweb.fractal.api.NoSuchInterfaceException - :
Impossible to add a component
org.objectweb.fractal.api.control.IllegalLifeCycleException - :
Impossible to add a component
org.objectweb.fractal.api.control.IllegalContentException - :
Impossible to add a component
org.objectweb.fractal.api.control.IllegalBindingException - :
Impossible to add a component
com.ebmwebsourcing.easycommons.sca.helper.api.SCAException
public void addBindings(org.objectweb.fractal.api.Component component,
java.util.List<Binding> listOfBindings)
throws com.ebmwebsourcing.easycommons.sca.helper.api.SCAException
newComponent - The new componentparentComponent - The parent componentlistOfBindings - the list of binding to create between this new component and
the others
org.objectweb.fractal.api.NoSuchInterfaceException - :
Impossible to add a component
org.objectweb.fractal.api.control.IllegalLifeCycleException - :
Impossible to add a component
org.objectweb.fractal.api.control.IllegalContentException - :
Impossible to add a component
org.objectweb.fractal.api.control.IllegalBindingException - :
Impossible to add a component
com.ebmwebsourcing.easycommons.sca.helper.api.SCAException
public boolean isBinded(org.objectweb.fractal.api.Component component,
java.lang.String clientItfName)
throws com.ebmwebsourcing.easycommons.sca.helper.api.SCAException
com.ebmwebsourcing.easycommons.sca.helper.api.SCAException
public boolean isAlreadyBind(org.objectweb.fractal.api.Component component,
java.lang.String clientItfName,
org.oasisopen.sca.ServiceReference<?> sr)
throws com.ebmwebsourcing.easycommons.sca.helper.api.SCAException
com.ebmwebsourcing.easycommons.sca.helper.api.SCAException
public boolean isAlreadyBind(org.objectweb.fractal.api.Component component,
java.lang.String clientItfName,
org.objectweb.fractal.api.Interface itf)
throws com.ebmwebsourcing.easycommons.sca.helper.api.SCAException
com.ebmwebsourcing.easycommons.sca.helper.api.SCAException
public java.util.Map<java.lang.String,java.lang.Object> getListOfBindings(org.objectweb.fractal.api.Component component)
throws com.ebmwebsourcing.easycommons.sca.helper.api.SCAException
com.ebmwebsourcing.easycommons.sca.helper.api.SCAException
public java.util.List<java.lang.String> getListOfBinds(org.objectweb.fractal.api.Component component)
throws com.ebmwebsourcing.easycommons.sca.helper.api.SCAException
com.ebmwebsourcing.easycommons.sca.helper.api.SCAException
public org.objectweb.fractal.api.Component getParent(org.objectweb.fractal.api.Component childrenComponent)
throws com.ebmwebsourcing.easycommons.sca.helper.api.SCAException
com.ebmwebsourcing.easycommons.sca.helper.api.SCAException
public void deleteBindings(org.objectweb.fractal.api.Component component,
java.util.List<Binding> listOfBindings)
throws com.ebmwebsourcing.easycommons.sca.helper.api.SCAException
newComponent - The new componentparentComponent - The parent componentlistOfBindings - the list of binding to create between this new component and
the others
org.objectweb.fractal.api.NoSuchInterfaceException - :
Impossible to add a component
org.objectweb.fractal.api.control.IllegalLifeCycleException - :
Impossible to add a component
org.objectweb.fractal.api.control.IllegalContentException - :
Impossible to add a component
org.objectweb.fractal.api.control.IllegalBindingException - :
Impossible to add a component
com.ebmwebsourcing.easycommons.sca.helper.api.SCAException
public void deleteAllClientBindingsOfComponent(org.objectweb.fractal.api.Component component)
throws com.ebmwebsourcing.easycommons.sca.helper.api.SCAException
newComponent - The new componentparentComponent - The parent componentlistOfBindings - the list of binding to create between this new component and
the others
org.objectweb.fractal.api.NoSuchInterfaceException - :
Impossible to add a component
org.objectweb.fractal.api.control.IllegalLifeCycleException - :
Impossible to add a component
org.objectweb.fractal.api.control.IllegalContentException - :
Impossible to add a component
org.objectweb.fractal.api.control.IllegalBindingException - :
Impossible to add a component
com.ebmwebsourcing.easycommons.sca.helper.api.SCAException
public void deleteLinkWithAnItfClientOfComponent(org.objectweb.fractal.api.Component component,
java.lang.String itfCLient)
throws com.ebmwebsourcing.easycommons.sca.helper.api.SCAException
newComponent - The new componentparentComponent - The parent componentlistOfBindings - the list of binding to create between this new component and
the others
org.objectweb.fractal.api.NoSuchInterfaceException - :
Impossible to add a component
org.objectweb.fractal.api.control.IllegalLifeCycleException - :
Impossible to add a component
org.objectweb.fractal.api.control.IllegalContentException - :
Impossible to add a component
org.objectweb.fractal.api.control.IllegalBindingException - :
Impossible to add a component
com.ebmwebsourcing.easycommons.sca.helper.api.SCAException
public org.objectweb.fractal.api.Component createExplorer(java.lang.String fractalName,
java.lang.String fractalDefinition)
throws com.ebmwebsourcing.easycommons.sca.helper.api.SCAException
component - the component to explore
ADLException - :
occurs when it is impossible to create the explorer
org.objectweb.fractal.api.NoSuchInterfaceException - :
occurs when it is impossible to create the explorer
org.objectweb.fractal.api.control.IllegalBindingException - :
occurs when it is impossible to create the explorer
org.objectweb.fractal.api.control.IllegalLifeCycleException - :
occurs when it is impossible to create the explorer
org.objectweb.fractal.api.control.IllegalContentException - :
occurs when it is impossible to create the explorer
com.ebmwebsourcing.easycommons.sca.helper.api.SCAException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||