edu.UCL.satin.arch.components.container
Class Container
java.lang.Object
edu.UCL.satin.arch.components.Component
edu.UCL.satin.arch.components.Reflective
edu.UCL.satin.arch.components.container.Container
- All Implemented Interfaces:
- ComponentFacet, ContainerFacet, Facet
- Direct Known Subclasses:
- Core
- public abstract class Container
- extends Reflective
- implements ContainerFacet
Represents the SATIN container, which hosts all components in the system.
- Author:
- Stefanos Zachariadis
Constructor Summary |
Container(java.lang.Object id)
Creates a new container with the given component identifier |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
container
private static Container container
Container
public Container(java.lang.Object id)
- Creates a new container with the given component identifier
- Parameters:
id
- the identifier of the component
setDefaultRegistrar
public abstract void setDefaultRegistrar(Registrar registrar)
- Sets the default registrar of the container
- Specified by:
setDefaultRegistrar
in interface ContainerFacet
- Parameters:
registrar
-
getDefaultRegistrar
public abstract Registrar getDefaultRegistrar()
- Returns the default registrar of the container
- Specified by:
getDefaultRegistrar
in interface ContainerFacet
- Returns:
- Returns the default registrar of the container
getComponent
public abstract Component getComponent(java.lang.Object id)
- Returns a component found with the given ID attribute
- Returns:
- The latest version of the component found, or null if the component does not exist
getContainer
public static Container getContainer()
- Returns an instance of the Container for this node
- Returns:
- An instance of the container for this node