|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hivemind.definition.impl.ModuleDefinitionImpl
public class ModuleDefinitionImpl
Default implementation of ExtensionDefinition
.
Constructor Summary | |
---|---|
ModuleDefinitionImpl()
|
|
ModuleDefinitionImpl(java.lang.String id,
Location location,
ClassResolver resolver,
java.lang.String packageName)
|
Method Summary | |
---|---|
void |
addConfigurationParser(java.lang.String qualifiedConfigurationPointId,
ConfigurationParserDefinition parser)
Adds a configuration parser for a configuration point which can be defined in this module or another module. |
void |
addConfigurationPoint(ConfigurationPointDefinition configurationPoint)
Adds a configuration point definition to the module. |
void |
addContribution(java.lang.String qualifiedConfigurationPointId,
ContributionDefinition contribution)
Adds a contribution for a configuration point which can be defined in this module or another module. |
void |
addDependency(java.lang.String dependsOnModuleId)
Defines a dependency on another module. |
void |
addImplementation(java.lang.String qualifiedServicePointId,
ImplementationDefinition implementation)
Adds a implementation for a service point which can be defined in this module or another module. |
void |
addInterceptor(java.lang.String qualifiedServicePointId,
InterceptorDefinition interceptor)
Adds a interceptor for a service point which can be defined in this module or another module. |
void |
addServicePoint(ServicePointDefinition servicePoint)
Adds a service point definition to the module. |
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()
|
void |
setClassResolver(ClassResolver classResolver)
Sets the ClassResolver used to resolve all classes referenced from elements
inside the module. |
void |
setId(java.lang.String moduleId)
Sets the id of the module. |
void |
setLocation(Location location)
Sets the location of the module. |
void |
setPackageName(java.lang.String packageName)
Sets the package name of the module. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ModuleDefinitionImpl()
public ModuleDefinitionImpl(java.lang.String id, Location location, ClassResolver resolver, java.lang.String packageName)
id
- the id of the modulelocation
- the location of the moduleresolver
- the ClassResolver
used to resolve all classes referenced from
elements inside this module.packageName
- name of the package to search for class names within. If null, it defaults to the idMethod Detail |
---|
public ClassResolver getClassResolver()
getClassResolver
in interface ModuleDefinition
ClassResolver
used to resolve all classes referenced from
elements inside this module.ModuleDefinition.getClassResolver()
public void setClassResolver(ClassResolver classResolver)
ClassResolver
used to resolve all classes referenced from elements
inside the module.
public Location getLocation()
getLocation
in interface ModuleDefinition
ModuleDefinition.getLocation()
public void setLocation(Location location)
public java.lang.String getId()
getId
in interface ModuleDefinition
ModuleDefinition.getId()
public void setId(java.lang.String moduleId)
public java.lang.String getPackageName()
ModuleDefinition
getPackageName
in interface ModuleDefinition
ModuleDefinition.getPackageName()
public void setPackageName(java.lang.String packageName)
public void addServicePoint(ServicePointDefinition servicePoint)
servicePoint
- the service point
ApplicationRuntimeException
- if another service point with the same id has already been definedpublic ServicePointDefinition getServicePoint(java.lang.String id)
ModuleDefinition
getServicePoint
in interface ModuleDefinition
id
- the service point id (unqualified, without module id)
ModuleDefinition.getServicePoint(java.lang.String)
public java.util.Collection getServicePoints()
getServicePoints
in interface ModuleDefinition
service points
defined in this moduleModuleDefinition.getServicePoints()
public void addConfigurationPoint(ConfigurationPointDefinition configurationPoint)
configurationPoint
- the configuration point
ApplicationRuntimeException
- if another configuration point with the same id has already been definedpublic ConfigurationPointDefinition getConfigurationPoint(java.lang.String id)
ModuleDefinition
getConfigurationPoint
in interface ModuleDefinition
id
- the configuration point id (unqualified, without module id)
ModuleDefinition.getConfigurationPoint(java.lang.String)
public java.util.Collection getConfigurationPoints()
getConfigurationPoints
in interface ModuleDefinition
configuration points
defined in this moduleModuleDefinition.getConfigurationPoints()
public java.util.Collection getDependencies()
getDependencies
in interface ModuleDefinition
ModuleDefinition.getDependencies()
public void addDependency(java.lang.String dependsOnModuleId)
dependsOnModuleId
- the id of the module this module depends onpublic void addImplementation(java.lang.String qualifiedServicePointId, ImplementationDefinition implementation)
qualifiedServicePointId
- the fully qualified service point idimplementation
- the implementation definitionpublic void addInterceptor(java.lang.String qualifiedServicePointId, InterceptorDefinition interceptor)
qualifiedServicePointId
- the fully qualified service point idinterceptor
- the interceptor definitionpublic void addContribution(java.lang.String qualifiedConfigurationPointId, ContributionDefinition contribution)
qualifiedConfigurationPointId
- the fully qualified configuration point idcontribution
- the contribution definitionpublic void addConfigurationParser(java.lang.String qualifiedConfigurationPointId, ConfigurationParserDefinition parser)
qualifiedConfigurationPointId
- the fully qualified configuration point idparser
- the parser definitionpublic java.util.Collection getContributions()
getContributions
in interface ModuleDefinition
contributions
contained in this module.ModuleDefinition.getContributions()
public java.util.Collection getImplementations()
getImplementations
in interface ModuleDefinition
implementations
contained in this moduleModuleDefinition.getImplementations()
public java.util.Collection getInterceptors()
getInterceptors
in interface ModuleDefinition
interceptors
contained in this moduleModuleDefinition.getInterceptors()
public java.util.Collection getConfigurationParsers()
getConfigurationParsers
in interface ModuleDefinition
parsers
contained in this moduleModuleDefinition.getConfigurationParsers()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |