org.apache.tapestry5.ioc.internal
Class AdvisorDefImpl

java.lang.Object
  extended by org.apache.tapestry5.ioc.internal.AbstractServiceInstrumenter
      extended by org.apache.tapestry5.ioc.internal.AdvisorDefImpl
All Implemented Interfaces:
AdvisorDef, AdvisorDef2, Markable

public class AdvisorDefImpl
extends AbstractServiceInstrumenter
implements AdvisorDef2


Field Summary
 
Fields inherited from class org.apache.tapestry5.ioc.internal.AbstractServiceInstrumenter
constraints, idMatcher, method, proxyFactory
 
Constructor Summary
AdvisorDefImpl(Method method, String[] patterns, String[] constraints, PlasticProxyFactory proxyFactory, String advisorId, Class serviceInterface, Set<Class> markers)
           
 
Method Summary
 ServiceAdvisor createAdvisor(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).
 String getAdvisorId()
          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 Detail

AdvisorDefImpl

public AdvisorDefImpl(Method method,
                      String[] patterns,
                      String[] constraints,
                      PlasticProxyFactory proxyFactory,
                      String advisorId,
                      Class serviceInterface,
                      Set<Class> markers)
Method Detail

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 instance
resources - 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.