Package io.micronaut.inject
Interface BeanConfiguration
-
- All Superinterfaces:
io.micronaut.core.annotation.AnnotationMetadataProvider
,io.micronaut.core.annotation.AnnotationSource
,BeanContextConditional
- All Known Implementing Classes:
AbstractBeanConfiguration
public interface BeanConfiguration extends io.micronaut.core.annotation.AnnotationMetadataProvider, BeanContextConditional
A BeanConfiguration is a grouping of severalBeanDefinition
instances.- Since:
- 1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.lang.String
getName()
java.lang.Package
getPackage()
java.lang.String
getVersion()
The version of this configuration.boolean
isWithin(BeanDefinitionReference beanDefinitionReference)
Check whether the specified bean definition class is within this bean configuration.default boolean
isWithin(java.lang.Class cls)
Check whether the specified class is within this bean configuration.boolean
isWithin(java.lang.String className)
Check whether the specified class is within this bean configuration.-
Methods inherited from interface io.micronaut.core.annotation.AnnotationMetadataProvider
findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getAnnotationMetadata, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByType
-
Methods inherited from interface io.micronaut.core.annotation.AnnotationSource
getAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeDeclared
-
Methods inherited from interface io.micronaut.inject.BeanContextConditional
isEnabled, isEnabled
-
-
-
-
Method Detail
-
getPackage
java.lang.Package getPackage()
- Returns:
- The package for the bean configuration
-
getName
java.lang.String getName()
- Returns:
- The package name this configuration
-
getVersion
java.lang.String getVersion()
The version of this configuration. Note: returns null when called on a configuration not provided by a JAR.- Returns:
- The version or null
-
isWithin
boolean isWithin(BeanDefinitionReference beanDefinitionReference)
Check whether the specified bean definition class is within this bean configuration.- Parameters:
beanDefinitionReference
- The bean definition class- Returns:
- True if it is
-
isWithin
boolean isWithin(java.lang.String className)
Check whether the specified class is within this bean configuration.- Parameters:
className
- The class name- Returns:
- True if it is
-
isWithin
default boolean isWithin(java.lang.Class cls)
Check whether the specified class is within this bean configuration.- Parameters:
cls
- The class- Returns:
- True if it is
-
-