|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tapestry5.ioc.internal.DefaultModuleDefImpl
public class DefaultModuleDefImpl
Starting from the Class for a module, identifies all the services (service builder methods), decorators (service decorator methods) and (not yet implemented) contributions (service contributor methods).
| Constructor Summary | |
|---|---|
DefaultModuleDefImpl(java.lang.Class<?> moduleClass,
org.slf4j.Logger logger,
ClassFactory classFactory)
|
|
| Method Summary | |
|---|---|
void |
addServiceDef(ServiceDef serviceDef)
|
java.util.Set<AdvisorDef> |
getAdvisorDefs()
Returns all the service advisor definitions built/provided by this module. |
java.lang.Class |
getBuilderClass()
Returns the class that will be instantiated. |
java.util.Set<ContributionDef> |
getContributionDefs()
Returns all the contribution definitions built/provided by this module. |
java.util.Set<DecoratorDef> |
getDecoratorDefs()
Returns all the decorator definitions built/provided by this module. |
java.lang.String |
getLoggerName()
Returns the name used to create a Logger instance. |
ServiceDef |
getServiceDef(java.lang.String serviceId)
Returns a service definition via the service's id. |
java.util.Set<java.lang.String> |
getServiceIds()
Returns the ids of the services built/provided by the module. |
java.lang.String |
toString()
Identifies the module class and a list of service ids within the module. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultModuleDefImpl(java.lang.Class<?> moduleClass,
org.slf4j.Logger logger,
ClassFactory classFactory)
moduleClass - the class that is responsible for building services, etc.logger - based on the class name of the moduleclassFactory - factory used to create new classes at runtime or locate method line numbers for
error
reporting| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.Class getBuilderClass()
ModuleDef
getBuilderClass in interface ModuleDefpublic java.util.Set<java.lang.String> getServiceIds()
ModuleDef
getServiceIds in interface ModuleDefpublic ServiceDef getServiceDef(java.lang.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 java.util.Set<DecoratorDef> getDecoratorDefs()
ModuleDef
getDecoratorDefs in interface ModuleDefpublic java.util.Set<ContributionDef> getContributionDefs()
ModuleDef
getContributionDefs in interface ModuleDefpublic java.lang.String getLoggerName()
ModuleDefLogger instance. This is typically the builder class name.
getLoggerName in interface ModuleDefpublic java.util.Set<AdvisorDef> getAdvisorDefs()
ModuleDef2
getAdvisorDefs in interface ModuleDef2
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||