|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ijsberg.iglu.configuration.module.StandardCluster
public class StandardCluster
| Constructor Summary | |
|---|---|
StandardCluster()
|
|
| Method Summary | |
|---|---|
void |
connect(Component externalComponent)
Connects component as external, anonymous component |
void |
connect(String componentId,
Component component)
Connects a component as internal component |
void |
connect(String componentId,
Component component,
Class<?>... exposedInterfaces)
Connects a component as internal, exposed component. |
void |
disconnect(Component component)
Disconnects component. |
void |
expose(String internalComponentId,
Class<?>... interfaces)
Updates exposure of interfaces of an internal component. |
Set<String> |
getExposedComponentIds()
|
Class<?>[] |
getExposedInterfaces(String componentId)
|
Set<Component> |
getExternalComponents()
|
Facade |
getFacade()
|
Map<String,Component> |
getInternalComponents()
|
Object |
getProxy(String componentId,
Class<?> exposedInterface)
|
Object |
invoke(Object proxy,
Method method,
Object[] arguments)
Invoked through proxy instance for facade. |
boolean |
isConnected(Component component)
|
boolean |
isConnectedExternally(Component component)
|
boolean |
isConnectedInternally(Component component)
|
boolean |
isExposed(String componentId)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StandardCluster()
| Method Detail |
|---|
public boolean isConnected(Component component)
public boolean isConnectedInternally(Component component)
public boolean isConnectedExternally(Component component)
public boolean isExposed(String componentId)
public void connect(String componentId,
Component component)
throws ConfigurationException
connect in interface ConnectorcomponentId - component -
ConfigurationException - if the component is already registered
public void connect(String componentId,
Component component,
Class<?>... exposedInterfaces)
throws ConfigurationException
connect in interface ClustercomponentId - component - exposedInterfaces - interfaces accessible for external components
ConfigurationException - if the component is already registered
public void connect(Component externalComponent)
throws ConfigurationException
connect in interface FacadeexternalComponent -
ConfigurationException - if the component is already registeredpublic void disconnect(Component component)
Connector
disconnect in interface Connectordisconnect in interface Facadecomponent - public Set<String> getExposedComponentIds()
getExposedComponentIds in interface Facadepublic Class<?>[] getExposedInterfaces(String componentId)
getExposedInterfaces in interface FacadecomponentId -
public Object getProxy(String componentId,
Class<?> exposedInterface)
getProxy in interface FacadecomponentId - exposedInterface -
public Object invoke(Object proxy,
Method method,
Object[] arguments)
throws Throwable
invoke in interface InvocationHandlerproxy - method - arguments -
Throwablepublic Facade getFacade()
getFacade in interface Clusterpublic Map<String,Component> getInternalComponents()
getInternalComponents in interface Clusterpublic Set<Component> getExternalComponents()
getExternalComponents in interface Cluster
public void expose(String internalComponentId,
Class<?>... interfaces)
Cluster
expose in interface ClusterinternalComponentId - interfaces -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||