T
- The bean type@Internal public abstract class AbstractInitializableBeanDefinitionReference<T> extends Object implements BeanDefinitionReference<T>
EMPTY
Constructor and Description |
---|
AbstractInitializableBeanDefinitionReference(String beanTypeName,
String beanDefinitionTypeName,
AnnotationMetadata annotationMetadata,
boolean isPrimary,
boolean isContextScope,
boolean isConditional,
boolean isContainerType,
boolean isSingleton,
boolean isConfigurationProperties,
boolean hasExposedTypes,
boolean requiresMethodProcessing) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
AnnotationMetadata |
getAnnotationMetadata()
Supplies the metadata.
|
String |
getBeanDefinitionName() |
protected abstract Class<? extends BeanDefinition<?>> |
getBeanDefinitionType()
Implementors should provide an implementation of this method that returns the bean definition type.
|
Set<Class<?>> |
getExposedTypes()
Returns a potentially limited subset of bean types exposed by this bean.
|
String |
getName() |
int |
hashCode() |
boolean |
isConfigurationProperties() |
boolean |
isContainerType()
Checks whether the bean type is a container type.
|
boolean |
isContextScope() |
boolean |
isEnabled(BeanContext context)
Return whether this component is enabled for the given context.
|
boolean |
isEnabled(BeanContext context,
BeanResolutionContext resolutionContext)
Return whether this component is enabled for the given context.
|
boolean |
isPresent() |
boolean |
isPrimary() |
boolean |
isSingleton() |
BeanDefinition |
load(BeanContext context)
Loads the bean definition for the current
BeanContext . |
boolean |
requiresMethodProcessing()
By default, when the
BeanContext is started, the
BeanDefinition.getExecutableMethods() are not processed by registered
ExecutableMethodProcessor instances unless this method returns true. |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
load
getBeanType, isCandidateBean
findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByType
getAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeDeclared
public AbstractInitializableBeanDefinitionReference(String beanTypeName, String beanDefinitionTypeName, AnnotationMetadata annotationMetadata, boolean isPrimary, boolean isContextScope, boolean isConditional, boolean isContainerType, boolean isSingleton, boolean isConfigurationProperties, boolean hasExposedTypes, boolean requiresMethodProcessing)
beanTypeName
- The bean type namebeanDefinitionTypeName
- The bean definition type nameannotationMetadata
- The annotationMetadataisPrimary
- Is primary bean?isContextScope
- Is context scope?isConditional
- Is conditional? = No @RequiresisContainerType
- Is container type?isSingleton
- Is singleton?isConfigurationProperties
- Is configuration properties?hasExposedTypes
- Has exposed types?requiresMethodProcessing
- Is requires method processing?public String getName()
public String getBeanDefinitionName()
getBeanDefinitionName
in interface BeanDefinitionReference<T>
BeanDefinition
public AnnotationMetadata getAnnotationMetadata()
AnnotationMetadataProvider
AnnotationMetadata.EMPTY_METADATA
.getAnnotationMetadata
in interface AnnotationMetadataProvider
AnnotationMetadata
public boolean isPrimary()
public boolean isSingleton()
isSingleton
in interface BeanDefinitionReference<T>
public boolean isConfigurationProperties()
isConfigurationProperties
in interface BeanDefinitionReference<T>
public boolean isContainerType()
BeanType
isContainerType
in interface BeanType<T>
Iterable
.public boolean isContextScope()
isContextScope
in interface BeanDefinitionReference<T>
public boolean requiresMethodProcessing()
BeanType
BeanContext
is started, the
BeanDefinition.getExecutableMethods()
are not processed by registered
ExecutableMethodProcessor
instances unless this method returns true.requiresMethodProcessing
in interface BeanType<T>
Executable.processOnStartup()
@NonNull public final Set<Class<?>> getExposedTypes()
BeanType
Type
annotation.getExposedTypes
in interface BeanType<T>
public BeanDefinition load(BeanContext context)
BeanDefinitionReference
BeanContext
.load
in interface BeanDefinitionReference<T>
context
- The bean contextpublic boolean isPresent()
isPresent
in interface BeanDefinitionReference<T>
public boolean isEnabled(BeanContext context)
BeanContextConditional
isEnabled
in interface BeanContextConditional
context
- The contextpublic boolean isEnabled(BeanContext context, BeanResolutionContext resolutionContext)
BeanContextConditional
isEnabled
in interface BeanContextConditional
context
- The contextresolutionContext
- The bean resolution contextprotected abstract Class<? extends BeanDefinition<?>> getBeanDefinitionType()