org.andromda.core.namespace
Class NamespaceComponents

java.lang.Object
  extended by org.andromda.core.namespace.NamespaceComponents

public class NamespaceComponents
extends java.lang.Object

The registry for namespace components. Namespace components are components that reside within a namespace and can be configured by a namespace.

Author:
Chad Brandon

Constructor Summary
NamespaceComponents()
          This class should not be instantiated through this constructor, it is only here to allow construction by the XmlObjectFactory.
 
Method Summary
 void addComponent(Component component)
          Adds a new component to this namespace registry.
 void discover()
          Discovers all namespaces found on the classpath.
 java.lang.String getPath()
          Gets the path to the namespace registry descriptor.
static NamespaceComponents instance()
          Gets the shared instance of this registry.
 void setPath(java.lang.String path)
          Sets the path to the namespace registry descriptor.
 void shutdown()
          Shuts down this component registry and reclaims any resources used.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamespaceComponents

public NamespaceComponents()
This class should not be instantiated through this constructor, it is only here to allow construction by the XmlObjectFactory. The instance of this class should be retrieved through the call to instance().

Method Detail

instance

public static final NamespaceComponents instance()
Gets the shared instance of this registry.

Returns:
the shared registry instance.

discover

public void discover()
Discovers all namespaces found on the classpath.


getPath

public java.lang.String getPath()
Gets the path to the namespace registry descriptor.

Returns:
The path to a namespace registry descriptor.

setPath

public void setPath(java.lang.String path)
Sets the path to the namespace registry descriptor.

Parameters:
path - The path to a namespace registry descriptor.

addComponent

public void addComponent(Component component)
Adds a new component to this namespace registry.

Parameters:
component - the component to add to this namespace registry.

shutdown

public void shutdown()
Shuts down this component registry and reclaims any resources used.



Copyright © 2003-2008 AndroMDA.org. All Rights Reserved.