|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Module
A module within the Tapestry IoC registry. Each Module is constructed around a corresponding module builder instance; the methods and annotations of that instance define the services provided by the module.
Method Summary | ||
---|---|---|
void |
collectEagerLoadServices(Collection<EagerLoadServiceProxy> proxies)
Locates services with the EagerLoad annotation and generates proxies
for them, then adds them to the proxies list for instantiation. |
|
Set<DecoratorDef> |
findMatchingDecoratorDefs(ServiceDef serviceDef)
Iterates over any decorator definitions defined by the module and returns those that apply to the provided service definition. |
|
Set<AdvisorDef> |
findMatchingServiceAdvisors(ServiceDef serviceDef)
Iterates over any advisor definitions defined by the module and returns those that apply to the provided service definition. |
|
Collection<String> |
findServiceIdsForInterface(Class serviceInterface)
Locates the ids of all services that implement the provided service interface, or whose service interface is assignable to the provided service interface (is a super-class or super-interface). |
|
Set<ContributionDef2> |
getContributorDefsForService(ServiceDef serviceDef)
Finds any contributions that are targeted at the indicated service. |
|
String |
getLoggerName()
Returns the name used to obtain a logger for the module. |
|
|
getService(String serviceId,
Class<T> serviceInterface)
Locates a service given a service id and the corresponding service interface type. |
|
ServiceDef3 |
getServiceDef(String serviceId)
Returns the service definition for the given service id. |
Methods inherited from interface org.apache.tapestry5.ioc.ModuleBuilderSource |
---|
getModuleBuilder |
Method Detail |
---|
<T> T getService(String serviceId, Class<T> serviceInterface)
T
- serviceId
- identifies the service to accessserviceInterface
- the interface the service implements
RuntimeException
- if there is an error instantiating the service proxyCollection<String> findServiceIdsForInterface(Class serviceInterface)
serviceInterface
- the interface to search for
Set<DecoratorDef> findMatchingDecoratorDefs(ServiceDef serviceDef)
serviceDef
- for which decorators are being assembled
Set<AdvisorDef> findMatchingServiceAdvisors(ServiceDef serviceDef)
serviceDef
- for which advisors are being assembled
Set<ContributionDef2> getContributorDefsForService(ServiceDef serviceDef)
void collectEagerLoadServices(Collection<EagerLoadServiceProxy> proxies)
EagerLoad
annotation and generates proxies
for them, then adds them to the proxies list for instantiation.
proxies
- collection of proxies to which any eager load services in the module should be addedServiceDef3 getServiceDef(String serviceId)
serviceId
- unique id for the service (caseless)
String getLoggerName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |