|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Cluster
A cluster represents a group of interconnected components. A cluster contains internal components that are considered to be part of a layer or subsystem. Internal components may access any interface of other internal components in the cluster. Proxies for component interfaces are exchanged and injected upon connection.
A cluster may be accessed as facade to which external components can connect. Internal components may expose certain interfaces through the facade boundary to external components. Proxies for these interfaces will be injected upon connection of an external component. An external component is considered as an anonymous, untrusted consumer of the cluster's services. Proxies for external component interfaces are not injected in internal components.
| Method Summary | |
|---|---|
void |
connect(String componentId,
Component component,
Class<?>... exposedInterfaces)
Connects internal component and exposes interfaces. |
void |
expose(String internalComponentId,
Class<?>... interfaces)
Updates exposure of interfaces of an internal component. |
Set<Component> |
getExternalComponents()
|
Facade |
getFacade()
|
Map<String,Component> |
getInternalComponents()
|
| Methods inherited from interface org.ijsberg.iglu.configuration.Connector |
|---|
connect, disconnect |
| Method Detail |
|---|
Map<String,Component> getInternalComponents()
Set<Component> getExternalComponents()
void connect(String componentId,
Component component,
Class<?>... exposedInterfaces)
componentId - component - exposedInterfaces -
void expose(String internalComponentId,
Class<?>... interfaces)
internalComponentId - interfaces - Facade getFacade()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||