org.apache.hivemind.definition
Interface ModuleDefinition

All Known Implementing Classes:
ModuleDefinitionImpl

public interface ModuleDefinition

Defines a module of a RegistryDefinition. A module has its own namespace in which configuration points and service points are defined. It can provide extension to extension points in other modules.

Author:
Huegen

Method Summary
 ClassResolver getClassResolver()
           
 java.util.Collection getConfigurationParsers()
           
 ConfigurationPointDefinition getConfigurationPoint(java.lang.String id)
          Returns a configuration point that is identified by its id.
 java.util.Collection getConfigurationPoints()
           
 java.util.Collection getContributions()
           
 java.util.Collection getDependencies()
           
 java.lang.String getId()
           
 java.util.Collection getImplementations()
           
 java.util.Collection getInterceptors()
           
 Location getLocation()
           
 java.lang.String getPackageName()
          Returns the name of the package to search for class names within.
 ServicePointDefinition getServicePoint(java.lang.String id)
          Returns a service point that is identified by its id.
 java.util.Collection getServicePoints()
           
 

Method Detail

getId

java.lang.String getId()
Returns:
the id of the module. It can contain dots.

getClassResolver

ClassResolver getClassResolver()
Returns:
the ClassResolver used to resolve all classes referenced from elements inside this module.

getLocation

Location getLocation()
Returns:
the location of the module

getPackageName

java.lang.String getPackageName()
Returns the name of the package to search for class names within. By default, the package name will match the module id.


getServicePoint

ServicePointDefinition getServicePoint(java.lang.String id)
Returns a service point that is identified by its id.

Parameters:
id - the service point id (unqualified, without module id)
Returns:
the service point definition

getServicePoints

java.util.Collection getServicePoints()
Returns:
all service points defined in this module

getConfigurationPoint

ConfigurationPointDefinition getConfigurationPoint(java.lang.String id)
Returns a configuration point that is identified by its id.

Parameters:
id - the configuration point id (unqualified, without module id)
Returns:
the configuration point definition

getConfigurationPoints

java.util.Collection getConfigurationPoints()
Returns:
all configuration points defined in this module

getDependencies

java.util.Collection getDependencies()
Returns:
the ids of all modules this module depends on

getImplementations

java.util.Collection getImplementations()
Returns:
all implementations contained in this module

getInterceptors

java.util.Collection getInterceptors()
Returns:
all interceptors contained in this module

getContributions

java.util.Collection getContributions()
Returns:
all contributions contained in this module.

getConfigurationParsers

java.util.Collection getConfigurationParsers()
Returns:
all parsers contained in this module


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.