@Internal public abstract class AbstractBeanConfiguration extends Object implements BeanConfiguration
BeanConfiguration
method. Not typically used directly from user code,
instead an implementation will perform analysis on package-info files generate a configuration definition for a
given package.EMPTY
Modifier | Constructor and Description |
---|---|
protected |
AbstractBeanConfiguration(String thePackage) |
Modifier and Type | Method and Description |
---|---|
String |
getName() |
Package |
getPackage() |
String |
getVersion()
The version of this configuration.
|
boolean |
isEnabled(BeanContext context,
BeanResolutionContext resolutionContext)
Return whether this component is enabled for the given context.
|
boolean |
isWithin(BeanDefinitionReference beanDefinitionReference)
Check whether the specified bean definition class is within this bean configuration.
|
boolean |
isWithin(String className)
Check whether the specified class is within this bean configuration.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isWithin
findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getAnnotationMetadata, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByType
getAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeDeclared
isEnabled, isEnabled
protected AbstractBeanConfiguration(String thePackage)
thePackage
- The package namepublic Package getPackage()
getPackage
in interface BeanConfiguration
public String getName()
getName
in interface BeanConfiguration
public String getVersion()
BeanConfiguration
getVersion
in interface BeanConfiguration
public boolean isWithin(BeanDefinitionReference beanDefinitionReference)
BeanConfiguration
isWithin
in interface BeanConfiguration
beanDefinitionReference
- The bean definition classpublic boolean isWithin(String className)
BeanConfiguration
isWithin
in interface BeanConfiguration
className
- The class namepublic boolean isEnabled(@NonNull BeanContext context, @Nullable BeanResolutionContext resolutionContext)
BeanContextConditional
isEnabled
in interface BeanContextConditional
context
- The contextresolutionContext
- The bean resolution context