public class LogicalCompositeComponent extends LogicalComponent<CompositeImplementation>
| Constructor and Description |
|---|
LogicalCompositeComponent(java.net.URI uri,
org.fabric3.api.model.type.component.Component<CompositeImplementation> definition,
boolean autowire)
Instantiates a composite component.
|
LogicalCompositeComponent(java.net.URI uri,
org.fabric3.api.model.type.component.Component<CompositeImplementation> definition,
LogicalCompositeComponent parent)
Instantiates a composite component.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addChannel(LogicalChannel channel)
Adds a channel.
|
void |
addComponent(LogicalComponent<?> component)
Adds a child component
|
void |
addResource(LogicalResource<?> resource) |
void |
addWire(LogicalReference logicalReference,
LogicalWire logicalWire)
Adds a wire to this composite component.
|
void |
addWires(LogicalReference logicalReference,
java.util.List<LogicalWire> newWires)
Adds a set of wires to this composite component.
|
LogicalChannel |
getChannel(java.net.URI uri)
Returns a channel with the given URI.
|
java.util.Collection<LogicalChannel> |
getChannels()
Returns the channels contained in the current component.
|
LogicalComponent<?> |
getComponent(java.net.URI uri)
Returns a child component with the given URI.
|
java.util.Collection<LogicalComponent<?>> |
getComponents()
Returns the child components of the current component.
|
java.util.Collection<LogicalResource<?>> |
getResources() |
java.util.Map<LogicalReference,java.util.List<LogicalWire>> |
getWires()
Returns a map of wires keyed by logical reference contained in this composite.
|
java.util.List<LogicalWire> |
getWires(LogicalReference logicalReference)
Gets the resolved targets sourced by the specified logical reference.
|
boolean |
isAutowire()
Returns true if autowire is enabled.
|
void |
removeChannel(java.net.URI uri)
Removes a channel with the given URI.
|
void |
removeComponent(java.net.URI uri)
Removes a child component with the given URI.
|
void |
setState(LogicalState state)
Sets the component state.
|
addConsumer, addProducer, addReference, addResource, addService, getAllProperties, getConsumer, getConsumers, getDefinition, getProducer, getProducers, getProperties, getReference, getReferences, getResourceReference, getResourceReferences, getService, getServices, getState, getUri, setPropertiesaddMetadata, getMetadata, getParentpublic LogicalCompositeComponent(java.net.URI uri,
org.fabric3.api.model.type.component.Component<CompositeImplementation> definition,
LogicalCompositeComponent parent)
uri - the component URIdefinition - the component definitionparent - the component parentpublic LogicalCompositeComponent(java.net.URI uri,
org.fabric3.api.model.type.component.Component<CompositeImplementation> definition,
boolean autowire)
uri - the component URIdefinition - the component definitionautowire - true if autowire is enabledpublic void addWire(LogicalReference logicalReference, LogicalWire logicalWire)
logicalReference - the wire sourcelogicalWire - the wire to be added to this composite componentpublic void addWires(LogicalReference logicalReference, java.util.List<LogicalWire> newWires)
logicalReference - the source for the wiresnewWires - the wires to addpublic java.util.List<LogicalWire> getWires(LogicalReference logicalReference)
logicalReference - Logical reference that sources the wire.public java.util.Map<LogicalReference,java.util.List<LogicalWire>> getWires()
public java.util.Collection<LogicalComponent<?>> getComponents()
public LogicalComponent<?> getComponent(java.net.URI uri)
uri - the child component URIpublic void removeComponent(java.net.URI uri)
uri - the child component URIpublic void addComponent(LogicalComponent<?> component)
component - the child component to addpublic java.util.Collection<LogicalChannel> getChannels()
public LogicalChannel getChannel(java.net.URI uri)
uri - the channel URIpublic void removeChannel(java.net.URI uri)
uri - the channel URIpublic void addChannel(LogicalChannel channel)
channel - the channel to addpublic java.util.Collection<LogicalResource<?>> getResources()
public void addResource(LogicalResource<?> resource)
public void setState(LogicalState state)
setState in class LogicalComponent<CompositeImplementation>state - the instance statepublic boolean isAutowire()