org.apache.tapestry5.ioc.internal
Class AdvisorDefImpl
java.lang.Object
org.apache.tapestry5.ioc.internal.AbstractServiceInstrumenter
org.apache.tapestry5.ioc.internal.AdvisorDefImpl
- All Implemented Interfaces:
- AdvisorDef, AdvisorDef2, Markable
public class AdvisorDefImpl
- extends AbstractServiceInstrumenter
- implements AdvisorDef2
AdvisorDefImpl
public AdvisorDefImpl(Method method,
String[] patterns,
String[] constraints,
PlasticProxyFactory proxyFactory,
String advisorId,
Class serviceInterface,
Set<Class> markers)
createAdvisor
public ServiceAdvisor createAdvisor(ModuleBuilderSource moduleSource,
ServiceResources resources)
- Description copied from interface:
AdvisorDef
- Creates an object that can provide the service advice (in the default case, by invoking the advise method on the
module class or instance).
- Specified by:
createAdvisor
in interface AdvisorDef
- Parameters:
moduleSource
- used to obtain the module instanceresources
- used to provide injections into the advise method
- Returns:
- advisor
getAdvisorId
public String getAdvisorId()
- Description copied from interface:
AdvisorDef
- Returns the id of the advisor, which is derived from the advisor method name.
- Specified by:
getAdvisorId
in interface AdvisorDef
Copyright © 2003-2012 The Apache Software Foundation.