@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.
|
String |
getName() |
int |
hashCode() |
boolean |
isContextScope() |
boolean |
isEnabled(BeanContext beanContext)
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, waitloadgetBeanType, requiresMethodProcessingfindAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getAnnotationMetadata, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByTypegetAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotationpublic boolean isPrimary()
public BeanDefinition load(BeanContext context)
BeanDefinitionReferenceBeanContext.load in interface BeanDefinitionReferencecontext - The bean contextpublic boolean isContextScope()
isContextScope in interface BeanDefinitionReferencepublic String getBeanDefinitionName()
getBeanDefinitionName in interface BeanDefinitionReferenceBeanDefinitionpublic boolean isPresent()
isPresent in interface BeanDefinitionReferencepublic boolean isEnabled(BeanContext beanContext)
BeanContextConditionalisEnabled in interface BeanContextConditionalbeanContext - The contextprotected abstract Class<? extends BeanDefinition<?>> getBeanDefinitionType()