@Internal public abstract class AbstractBeanConfiguration extends java.lang.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(java.lang.String thePackage) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName() |
java.lang.Package |
getPackage() |
java.lang.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(java.lang.String className)
Check whether the specified class is within this bean configuration.
|
java.lang.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
isEnabled, isEnabled
protected AbstractBeanConfiguration(java.lang.String thePackage)
thePackage
- The package namepublic java.lang.Package getPackage()
getPackage
in interface BeanConfiguration
public java.lang.String getName()
getName
in interface BeanConfiguration
public java.lang.String getVersion()
BeanConfiguration
getVersion
in interface BeanConfiguration
public boolean isWithin(BeanDefinitionReference beanDefinitionReference)
BeanConfiguration
isWithin
in interface BeanConfiguration
beanDefinitionReference
- The bean definition classpublic java.lang.String toString()
toString
in class java.lang.Object
public boolean isWithin(java.lang.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