|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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(Class<?> moduleClass,
org.slf4j.Logger logger,
PlasticProxyFactory proxyFactory)
|
Method Summary | |
---|---|
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. |
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(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 runtimeMethod Detail |
---|
public String toString()
toString
in class Object
public Class getBuilderClass()
ModuleDef
getBuilderClass
in interface ModuleDef
public Set<String> getServiceIds()
ModuleDef
getServiceIds
in interface ModuleDef
public ServiceDef getServiceDef(String serviceId)
ModuleDef
ServiceDef2
, and will be converted to such if necessary.
getServiceDef
in interface ModuleDef
serviceId
- the id of the service to retrieve (case is ignored)
public void addServiceDef(ServiceDef serviceDef)
addServiceDef
in interface ServiceDefAccumulator
public Set<DecoratorDef> getDecoratorDefs()
ModuleDef
getDecoratorDefs
in interface ModuleDef
public Set<ContributionDef> getContributionDefs()
ModuleDef
getContributionDefs
in interface ModuleDef
public String getLoggerName()
ModuleDef
Logger
instance. This is typically the builder class name.
getLoggerName
in interface ModuleDef
public Set<AdvisorDef> getAdvisorDefs()
ModuleDef2
getAdvisorDefs
in interface ModuleDef2
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |