org.apache.hivemind.definition.impl
Class ModuleDefinitionHelper

java.lang.Object
  extended by org.apache.hivemind.definition.impl.ModuleDefinitionHelper

public class ModuleDefinitionHelper
extends java.lang.Object

Helper class that offers convenience functions for the definition of modules and its extension points. All instances created are standard implementations of the definition interfaces.

Author:
Achim Huegen

Constructor Summary
ModuleDefinitionHelper(ModuleDefinitionImpl module)
           
 
Method Summary
 ConfigurationPointDefinition addConfigurationPoint(java.lang.String configurationPointId, java.lang.String containerType)
           
 ContributionDefinition addContributionDefinition(ConfigurationPointDefinition configurationPoint, Contribution contributionConstructor)
           
 ContributionDefinition addContributionDefinition(java.lang.String qualifiedConfigurationPointId, Contribution contributionConstructor)
           
 ImplementationDefinition addServiceImplementation(ServicePointDefinition servicePoint, ImplementationConstructor constructor, java.lang.String serviceModel)
           
 ServicePointDefinition addServicePoint(java.lang.String servicePointId, java.lang.String serviceInterface)
           
 ServicePointDefinition addServicePointWithDefaultImplementation(java.lang.String servicePointId, java.lang.String serviceInterface)
           
 ImplementationDefinition addSimpleServiceImplementation(ServicePointDefinition servicePoint, java.lang.String serviceImplementationClass, java.lang.String serviceModel)
           
 ModuleDefinition getModule()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModuleDefinitionHelper

public ModuleDefinitionHelper(ModuleDefinitionImpl module)
Method Detail

addServicePoint

public ServicePointDefinition addServicePoint(java.lang.String servicePointId,
                                              java.lang.String serviceInterface)

addServicePointWithDefaultImplementation

public ServicePointDefinition addServicePointWithDefaultImplementation(java.lang.String servicePointId,
                                                                       java.lang.String serviceInterface)

addServiceImplementation

public ImplementationDefinition addServiceImplementation(ServicePointDefinition servicePoint,
                                                         ImplementationConstructor constructor,
                                                         java.lang.String serviceModel)

addSimpleServiceImplementation

public ImplementationDefinition addSimpleServiceImplementation(ServicePointDefinition servicePoint,
                                                               java.lang.String serviceImplementationClass,
                                                               java.lang.String serviceModel)

addConfigurationPoint

public ConfigurationPointDefinition addConfigurationPoint(java.lang.String configurationPointId,
                                                          java.lang.String containerType)

addContributionDefinition

public ContributionDefinition addContributionDefinition(ConfigurationPointDefinition configurationPoint,
                                                        Contribution contributionConstructor)

addContributionDefinition

public ContributionDefinition addContributionDefinition(java.lang.String qualifiedConfigurationPointId,
                                                        Contribution contributionConstructor)

getModule

public ModuleDefinition getModule()


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