@Internal public abstract class AbstractBeanDefinitionReference extends java.lang.Object implements BeanDefinitionReference
EMPTY| Constructor and Description |
|---|
AbstractBeanDefinitionReference(java.lang.String beanTypeName,
java.lang.String beanDefinitionTypeName) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getBeanDefinitionName() |
protected abstract java.lang.Class<? extends BeanDefinition<?>> |
getBeanDefinitionType()
Implementors should provide an implementation of this method that returns the bean definition type.
|
java.lang.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. |
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitisConfigurationProperties, isSingleton, loadgetBeanType, requiresMethodProcessingfindAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getAnnotationMetadata, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByTypegetAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotationisEnabledpublic AbstractBeanDefinitionReference(java.lang.String beanTypeName,
java.lang.String beanDefinitionTypeName)
beanTypeName - The bean type namebeanDefinitionTypeName - The bean definition type namepublic boolean isPrimary()
public java.lang.String getName()
public BeanDefinition load(BeanContext context)
BeanDefinitionReferenceBeanContext.load in interface BeanDefinitionReferencecontext - The bean contextpublic boolean isContextScope()
isContextScope in interface BeanDefinitionReferencepublic java.lang.String getBeanDefinitionName()
getBeanDefinitionName in interface BeanDefinitionReferenceBeanDefinitionpublic boolean isPresent()
isPresent in interface BeanDefinitionReferencepublic boolean isEnabled(BeanContext beanContext)
BeanContextConditionalisEnabled in interface BeanContextConditionalbeanContext - The contextpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectprotected abstract java.lang.Class<? extends BeanDefinition<?>> getBeanDefinitionType()
public boolean isEnabled(@NonNull
BeanContext context,
@Nullable
BeanResolutionContext resolutionContext)
BeanContextConditionalisEnabled in interface BeanContextConditionalcontext - The contextresolutionContext - The bean resolution context