Class AdvisorDefImpl
java.lang.Object
org.apache.tapestry5.ioc.internal.AbstractServiceInstrumenter
org.apache.tapestry5.ioc.internal.AdvisorDefImpl
- All Implemented Interfaces:
AdvisorDef
,AdvisorDef2
,Markable
-
Field Summary
Fields inherited from class org.apache.tapestry5.ioc.internal.AbstractServiceInstrumenter
constraints, idMatcher, method, proxyFactory
-
Constructor Summary
ConstructorsConstructorDescriptionAdvisorDefImpl
(Method method, String[] patterns, String[] constraints, PlasticProxyFactory proxyFactory, String advisorId, Class serviceInterface, Set<Class> markers) -
Method Summary
Modifier and TypeMethodDescriptioncreateAdvisor
(ModuleBuilderSource moduleSource, ServiceResources resources) Creates an object that can provide the service advice (in the default case, by invoking the advise method on the module class or instance).Returns the id of the advisor, which is derived from the advisor method name.Methods inherited from class org.apache.tapestry5.ioc.internal.AbstractServiceInstrumenter
getConstraints, getMarkers, getServiceInterface, matches, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.tapestry5.ioc.AdvisorDef
getConstraints, matches
Methods inherited from interface org.apache.tapestry5.ioc.Markable
getMarkers, getServiceInterface
-
Constructor Details
-
AdvisorDefImpl
public AdvisorDefImpl(Method method, String[] patterns, String[] constraints, PlasticProxyFactory proxyFactory, String advisorId, Class serviceInterface, Set<Class> markers)
-
-
Method Details
-
createAdvisor
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 interfaceAdvisorDef
- Parameters:
moduleSource
- used to obtain the module instanceresources
- used to provide injections into the advise method- Returns:
- advisor
-
getAdvisorId
Description copied from interface:AdvisorDef
Returns the id of the advisor, which is derived from the advisor method name.- Specified by:
getAdvisorId
in interfaceAdvisorDef
-