类 DeclareParentsAdvisor

    • 构造器详细资料

      • DeclareParentsAdvisor

        public DeclareParentsAdvisor​(Class<?> interfaceType,
                                     String typePattern,
                                     Class<?> defaultImpl)
        Create a new advisor for this DeclareParents field.
        参数:
        interfaceType - static field defining the introduction
        typePattern - type pattern the introduction is restricted to
        defaultImpl - the default implementation class
      • DeclareParentsAdvisor

        public DeclareParentsAdvisor​(Class<?> interfaceType,
                                     String typePattern,
                                     Object delegateRef)
        Create a new advisor for this DeclareParents field.
        参数:
        interfaceType - static field defining the introduction
        typePattern - type pattern the introduction is restricted to
        delegateRef - the delegate implementation object
    • 方法详细资料

      • isPerInstance

        public boolean isPerInstance()
        从接口复制的说明: Advisor
        Return whether this advice is associated with a particular instance (for example, creating a mixin) or shared with all instances of the advised class obtained from the same Spring bean factory.

        Note that this method is not currently used by the framework. Typical Advisor implementations always return true. Use singleton/prototype bean definitions or appropriate programmatic proxy creation to ensure that Advisors have the correct lifecycle model.

        指定者:
        isPerInstance 在接口中 Advisor
        返回:
        whether this advice is associated with a particular target instance