Save This Page
Home » tapestry-src-5.0.19 » org.apache.tapestry5.ioc.internal » [javadoc | source]
org.apache.tapestry5.ioc.internal
public interface: Module [javadoc | source]

All Implemented Interfaces:
    ModuleBuilderSource

All Known Implementing Classes:
    ModuleImpl

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 from org.apache.tapestry5.ioc.internal.Module Summary:
collectEagerLoadServices,   findDecoratorsForService,   findMatchingDecoratorDefs,   findServiceIdsForInterface,   getContributorDefsForService,   getLoggerName,   getService,   getServiceDef
Method from org.apache.tapestry5.ioc.internal.Module Detail:
 public  void collectEagerLoadServices(Collection<EagerLoadServiceProxy> proxies)
 public List<ServiceDecorator> findDecoratorsForService(String serviceId)
    Locates all the decorators that should apply the identified service. This includes visibility rules (private services may only be decorated by decorators in the same module) and other filtering rules. The resulting list is ordered and from the list of org.apache.tapestry5.ioc.def.DecoratorDef s, a list of ServiceDecorator s is returned.
 public Set<DecoratorDef> findMatchingDecoratorDefs(ServiceDef serviceDef)
    Iterates over any decorator definitions defined by the module and returns those that apply to the provided service definition.
 public 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).
 public Set<ContributionDef> getContributorDefsForService(String serviceId)
    Finds any contributions that are targetted at the indicated service.
 public String getLoggerName()
    Returns the name used to obtain a logger for the module. Services within the module suffix this with a period and the service id.
 public T getService(String serviceId,
    Class<T> serviceInterface)
    Locates a service given a service id and the corresponding service interface type.
 public ServiceDef getServiceDef(String serviceId)
    Returns the service definition for the given service id.