|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tapestry5.ioc.internal.ModuleImpl
public class ModuleImpl
| Constructor Summary | |
|---|---|
ModuleImpl(InternalRegistry registry,
ServiceActivityTracker tracker,
ModuleDef moduleDef,
ClassFactory classFactory,
org.slf4j.Logger logger)
|
|
| Method Summary | ||
|---|---|---|
void |
collectEagerLoadServices(java.util.Collection<EagerLoadServiceProxy> proxies)
Locates services with the EagerLoad annotation and generates proxies
for them, then adds them to the proxies list for instantiation. |
|
java.util.Set<DecoratorDef> |
findMatchingDecoratorDefs(ServiceDef serviceDef)
Iterates over any decorator definitions defined by the module and returns those that apply to the provided service definition. |
|
java.util.Set<AdvisorDef> |
findMatchingServiceAdvisors(ServiceDef serviceDef)
Iterates over any advisor definitions defined by the module and returns those that apply to the provided service definition. |
|
java.util.Collection<java.lang.String> |
findServiceIdsForInterface(java.lang.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). |
|
java.util.Set<ContributionDef2> |
getContributorDefsForService(ServiceDef serviceDef)
Finds any contributions that are targeted at the indicated service. |
|
java.lang.String |
getLoggerName()
Returns the name used to obtain a logger for the module. |
|
java.lang.Object |
getModuleBuilder()
Returns the instantiated version of the Tapestry IoC module class. |
|
|
getService(java.lang.String serviceId,
java.lang.Class<T> serviceInterface)
Locates a service given a service id and the corresponding service interface type. |
|
ServiceDef2 |
getServiceDef(java.lang.String serviceId)
Returns the service definition for the given service id. |
|
java.lang.String |
toString()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ModuleImpl(InternalRegistry registry,
ServiceActivityTracker tracker,
ModuleDef moduleDef,
ClassFactory classFactory,
org.slf4j.Logger logger)
| Method Detail |
|---|
public <T> T getService(java.lang.String serviceId,
java.lang.Class<T> serviceInterface)
Module
getService in interface ModuleserviceId - identifies the service to accessserviceInterface - the interface the service implements
public java.util.Set<DecoratorDef> findMatchingDecoratorDefs(ServiceDef serviceDef)
Module
findMatchingDecoratorDefs in interface ModuleserviceDef - for which decorators are being assembled
public java.util.Set<AdvisorDef> findMatchingServiceAdvisors(ServiceDef serviceDef)
Module
findMatchingServiceAdvisors in interface ModuleserviceDef - for which advisors are being assembled
public java.util.Collection<java.lang.String> findServiceIdsForInterface(java.lang.Class serviceInterface)
Module
findServiceIdsForInterface in interface ModuleserviceInterface - the interface to search for
public void collectEagerLoadServices(java.util.Collection<EagerLoadServiceProxy> proxies)
ModuleEagerLoad annotation and generates proxies
for them, then adds them to the proxies list for instantiation.
collectEagerLoadServices in interface Moduleproxies - collection of proxies to which any eager load services in the module should be addedpublic java.lang.Object getModuleBuilder()
ModuleBuilderSource
getModuleBuilder in interface ModuleBuilderSourcepublic java.util.Set<ContributionDef2> getContributorDefsForService(ServiceDef serviceDef)
Module
getContributorDefsForService in interface Modulepublic ServiceDef2 getServiceDef(java.lang.String serviceId)
Module
getServiceDef in interface ModuleserviceId - unique id for the service (caseless)
public java.lang.String getLoggerName()
Module
getLoggerName in interface Modulepublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||