类 DelegatingFactoryBean

  • 所有已实现的接口:
    org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean<java.lang.Object>, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware

    public class DelegatingFactoryBean
    extends java.lang.Object
    implements org.springframework.beans.factory.FactoryBean<java.lang.Object>, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.BeanNameAware
    FactoryBean implementation based on delegate object that was instantiated
    从以下版本开始:
    1.0.0
    作者:
    Mercy
    另请参阅:
    FactoryBean
    • 字段概要

      • 从接口继承的字段 org.springframework.beans.factory.FactoryBean

        OBJECT_TYPE_ATTRIBUTE
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      void afterPropertiesSet()  
      void destroy()  
      java.lang.Object getObject()  
      java.lang.Class<?> getObjectType()  
      void setApplicationContext​(org.springframework.context.ApplicationContext context)  
      void setBeanName​(java.lang.String name)  
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • 从接口继承的方法 org.springframework.beans.factory.FactoryBean

        isSingleton
    • 构造器详细资料

      • DelegatingFactoryBean

        public DelegatingFactoryBean​(java.lang.Object delegate)
    • 方法详细资料

      • getObject

        public java.lang.Object getObject()
                                   throws java.lang.Exception
        指定者:
        getObject 在接口中 org.springframework.beans.factory.FactoryBean<java.lang.Object>
        抛出:
        java.lang.Exception
      • getObjectType

        public java.lang.Class<?> getObjectType()
        指定者:
        getObjectType 在接口中 org.springframework.beans.factory.FactoryBean<java.lang.Object>
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws java.lang.Exception
        指定者:
        afterPropertiesSet 在接口中 org.springframework.beans.factory.InitializingBean
        抛出:
        java.lang.Exception
      • setApplicationContext

        public void setApplicationContext​(org.springframework.context.ApplicationContext context)
                                   throws org.springframework.beans.BeansException
        指定者:
        setApplicationContext 在接口中 org.springframework.context.ApplicationContextAware
        抛出:
        org.springframework.beans.BeansException
      • setBeanName

        public void setBeanName​(java.lang.String name)
        指定者:
        setBeanName 在接口中 org.springframework.beans.factory.BeanNameAware
      • destroy

        public void destroy()
                     throws java.lang.Exception
        指定者:
        destroy 在接口中 org.springframework.beans.factory.DisposableBean
        抛出:
        java.lang.Exception