@Internal public abstract class AbstractBeanDefinitionReference extends Object implements BeanDefinitionReference
EMPTY
Constructor and Description |
---|
AbstractBeanDefinitionReference(String beanTypeName,
String beanDefinitionTypeName) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
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 |
isContextScope() |
boolean |
isEnabled(BeanContext beanContext)
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() |
BeanDefinition |
load(BeanContext context)
Loads the bean definition for the current
BeanContext . |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isConfigurationProperties, isSingleton, load
getBeanType, isCandidateBean, isContainerType, requiresMethodProcessing
findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getAnnotationMetadata, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByType
getAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeDeclared
isEnabled
public boolean isPrimary()
@NonNull public final Set<Class<?>> getExposedTypes()
BeanType
Type
annotation.getExposedTypes
in interface BeanType
public BeanDefinition load(BeanContext context)
BeanDefinitionReference
BeanContext
.load
in interface BeanDefinitionReference
context
- The bean contextpublic boolean isContextScope()
isContextScope
in interface BeanDefinitionReference
public String getBeanDefinitionName()
getBeanDefinitionName
in interface BeanDefinitionReference
BeanDefinition
public boolean isPresent()
isPresent
in interface BeanDefinitionReference
public boolean isEnabled(BeanContext beanContext)
BeanContextConditional
isEnabled
in interface BeanContextConditional
beanContext
- The contextprotected abstract Class<? extends BeanDefinition<?>> getBeanDefinitionType()
public boolean isEnabled(@NonNull BeanContext context, @Nullable BeanResolutionContext resolutionContext)
BeanContextConditional
isEnabled
in interface BeanContextConditional
context
- The contextresolutionContext
- The bean resolution context