类 BeanCapableImportCandidate
- java.lang.Object
-
- io.microsphere.spring.context.annotation.BeanCapableImportCandidate
-
- 所有已实现的接口:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanClassLoaderAware,org.springframework.beans.factory.BeanFactoryAware,org.springframework.context.EnvironmentAware,org.springframework.context.ResourceLoaderAware
- 直接已知子类:
AnnotatedPropertySourceLoader
public abstract class BeanCapableImportCandidate extends java.lang.Object implements org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.context.EnvironmentAware, org.springframework.context.ResourceLoaderAwareThe@Importcandidate is an instance ofImportSelectororImportBeanDefinitionRegistrarand not a regular Spring bean, which only invokesBeanClassLoaderAware,BeanFactoryAware,EnvironmentAware, andResourceLoaderAwarecontracts in order if they are implemented, thus it will not bepopulatedandinitialized.The current abstract implementation is a template class supports the population and initialization, the sub-class must implement the interface
ImportSelectororImportBeanDefinitionRegistrar, and can't override those methods:- 从以下版本开始:
- 1.0.0
- 作者:
- Mercy
- 另请参阅:
AbstractAutowireCapableBeanFactory.populateBean(String, RootBeanDefinition, BeanWrapper),AbstractAutowireCapableBeanFactory.initializeBean(Object, String),ApplicationContextAwareProcessor
-
-
字段概要
字段 修饰符和类型 字段 说明 protected org.springframework.beans.factory.config.ConfigurableListableBeanFactorybeanFactoryprotected java.lang.ClassLoaderclassLoaderprotected org.springframework.core.env.ConfigurableEnvironmentenvironmentprotected org.slf4j.Loggerloggerprotected org.springframework.core.io.ResourceLoaderresourceLoader
-
构造器概要
构造器 构造器 说明 BeanCapableImportCandidate()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 org.springframework.beans.factory.config.ConfigurableListableBeanFactorygetBeanFactory()TheConfigurableListableBeanFactoryinstancejava.lang.ClassLoadergetClassLoader()Get theClassLoaderinstanceorg.springframework.core.env.ConfigurableEnvironmentgetEnvironment()TheConfigurableEnvironmentinstanceorg.springframework.core.io.ResourceLoadergetResourceLoader()TheResourceLoaderinstancevoidsetBeanClassLoader(java.lang.ClassLoader classLoader)voidsetBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)voidsetEnvironment(org.springframework.core.env.Environment environment)voidsetResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
-
-
-
字段详细资料
-
logger
protected final org.slf4j.Logger logger
-
classLoader
protected java.lang.ClassLoader classLoader
-
beanFactory
protected org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory
-
environment
protected org.springframework.core.env.ConfigurableEnvironment environment
-
resourceLoader
protected org.springframework.core.io.ResourceLoader resourceLoader
-
-
方法详细资料
-
setBeanClassLoader
public final void setBeanClassLoader(java.lang.ClassLoader classLoader)
- 指定者:
setBeanClassLoader在接口中org.springframework.beans.factory.BeanClassLoaderAware
-
setBeanFactory
public final void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException- 指定者:
setBeanFactory在接口中org.springframework.beans.factory.BeanFactoryAware- 抛出:
org.springframework.beans.BeansException
-
setEnvironment
public final void setEnvironment(org.springframework.core.env.Environment environment)
- 指定者:
setEnvironment在接口中org.springframework.context.EnvironmentAware
-
setResourceLoader
public final void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
- 指定者:
setResourceLoader在接口中org.springframework.context.ResourceLoaderAware
-
getClassLoader
@NonNull public final java.lang.ClassLoader getClassLoader()
Get theClassLoaderinstance- 返回:
- non-null
-
getBeanFactory
@NonNull public final org.springframework.beans.factory.config.ConfigurableListableBeanFactory getBeanFactory()
TheConfigurableListableBeanFactoryinstance- 返回:
- non-null
-
getEnvironment
@NonNull public final org.springframework.core.env.ConfigurableEnvironment getEnvironment()
TheConfigurableEnvironmentinstance- 返回:
- non-null
-
getResourceLoader
@NonNull public final org.springframework.core.io.ResourceLoader getResourceLoader()
TheResourceLoaderinstance- 返回:
- non-null
-
-