public class DefaultModuleDefImpl extends Object implements ModuleDef2, ServiceDefAccumulator
| Constructor and Description |
|---|
DefaultModuleDefImpl(Class<?> moduleClass,
org.slf4j.Logger logger,
PlasticProxyFactory proxyFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
addServiceDef(ServiceDef serviceDef) |
Set<AdvisorDef> |
getAdvisorDefs()
Returns all the service advisor definitions built/provided by this module.
|
Class |
getBuilderClass()
Returns the class that will be instantiated.
|
Set<ContributionDef> |
getContributionDefs()
Returns all the contribution definitions built/provided by this module.
|
Set<DecoratorDef> |
getDecoratorDefs()
Returns all the decorator definitions built/provided by this module.
|
String |
getLoggerName()
Returns the name used to create a
Logger instance. |
ServiceDef |
getServiceDef(String serviceId)
Returns a service definition via the service's id.
|
Set<String> |
getServiceIds()
Returns the ids of the services built/provided by the module.
|
Set<StartupDef> |
getStartups()
Methods marked with @Startup are converted into Runnable instances and assigned here.
|
String |
toString()
Identifies the module class and a list of service ids within the module.
|
public DefaultModuleDefImpl(Class<?> moduleClass, org.slf4j.Logger logger, PlasticProxyFactory proxyFactory)
moduleClass - the class that is responsible for building services, etc.logger - based on the class name of the moduleproxyFactory - factory used to create proxy classes at runtimepublic String toString()
public Class getBuilderClass()
ModuleDefgetBuilderClass in interface ModuleDefpublic Set<String> getServiceIds()
ModuleDefgetServiceIds in interface ModuleDefpublic ServiceDef getServiceDef(String serviceId)
ModuleDefServiceDef2, and will be converted to such if necessary.getServiceDef in interface ModuleDefserviceId - the id of the service to retrieve (case is ignored)public void addServiceDef(ServiceDef serviceDef)
addServiceDef in interface ServiceDefAccumulatorpublic Set<DecoratorDef> getDecoratorDefs()
ModuleDefgetDecoratorDefs in interface ModuleDefpublic Set<ContributionDef> getContributionDefs()
ModuleDefgetContributionDefs in interface ModuleDefpublic String getLoggerName()
ModuleDefLogger instance. This is typically the builder class name.getLoggerName in interface ModuleDefpublic Set<AdvisorDef> getAdvisorDefs()
ModuleDef2getAdvisorDefs in interface ModuleDef2public Set<StartupDef> getStartups()
ModuleDef2getStartups in interface ModuleDef25.6.4 - Copyright © 2003-2021 The Apache Software Foundation.