Class AdvisorDefImpl

    • Constructor Detail

      • AdvisorDefImpl

        public AdvisorDefImpl​(java.lang.reflect.Method method,
                              java.lang.String[] patterns,
                              java.lang.String[] constraints,
                              PlasticProxyFactory proxyFactory,
                              java.lang.String advisorId,
                              java.lang.Class serviceInterface,
                              java.util.Set<java.lang.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 java.lang.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