Package io.micronaut.aop.internal
Class InterceptorRegistryBean
java.lang.Object
io.micronaut.aop.internal.InterceptorRegistryBean
- All Implemented Interfaces:
AnnotationMetadata,AnnotationMetadataDelegate,AnnotationMetadataProvider,AnnotationSource,BeanInfo<InterceptorRegistry>,Named,Ordered,ArgumentCoercible<InterceptorRegistry>,BeanContextConditional,BeanDefinition<InterceptorRegistry>,BeanDefinitionReference<InterceptorRegistry>,BeanType<InterceptorRegistry>,InstantiatableBeanDefinition<InterceptorRegistry>,QualifiedBeanType<InterceptorRegistry>
@Internal
public final class InterceptorRegistryBean
extends Object
implements InstantiatableBeanDefinition<InterceptorRegistry>, BeanDefinitionReference<InterceptorRegistry>
Registers the
InterceptorRegistry instance.- Since:
- 3.0.0
- Author:
- graemerocher
-
Field Summary
FieldsFields inherited from interface io.micronaut.core.annotation.AnnotationMetadata
CLASS_NAME_SUFFIX, EMPTY_METADATA, VALUE_MEMBERFields inherited from interface io.micronaut.core.annotation.AnnotationSource
EMPTYFields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSupplies the metadata.Returns the bean type.instantiate(@NonNull BeanResolutionContext resolutionContext, @NonNull BeanContext context) Builds a bean instance.booleanbooleanbooleanisEnabled(@NonNull BeanContext context, BeanResolutionContext resolutionContext) Return whether this component is enabled for the given context.booleanbooleanload()Loads the bean definition.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.core.annotation.AnnotationMetadata
enumValuesSet, enumValuesSet, getValues, hasDeclaredStereotype, hasEvaluatedExpressions, hasStereotypeNonRepeating, isAnnotationPresent, isDeclaredAnnotationPresentMethods inherited from interface io.micronaut.core.annotation.AnnotationMetadataDelegate
booleanValue, booleanValue, booleanValue, booleanValue, classValue, classValue, classValue, classValue, classValues, classValues, classValues, classValues, copyAnnotationMetadata, doubleValue, doubleValue, doubleValue, enumValue, enumValue, enumValue, enumValue, enumValues, enumValues, enumValues, enumValues, findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, findRepeatableAnnotation, findRepeatableAnnotation, getAnnotation, getAnnotation, getAnnotationNameByStereotype, getAnnotationNameByStereotype, getAnnotationNames, getAnnotationNamesByStereotype, getAnnotationNamesByStereotype, getAnnotationType, getAnnotationType, getAnnotationTypeByStereotype, getAnnotationTypeByStereotype, getAnnotationTypesByStereotype, getAnnotationTypesByStereotype, getAnnotationTypesByStereotype, getAnnotationValuesByName, getAnnotationValuesByStereotype, getAnnotationValuesByType, getDeclaredAnnotation, getDeclaredAnnotation, getDeclaredAnnotationNameByStereotype, getDeclaredAnnotationNames, getDeclaredAnnotationNamesByStereotype, getDeclaredAnnotationTypeByStereotype, getDeclaredAnnotationTypeByStereotype, getDeclaredAnnotationValuesByName, getDeclaredAnnotationValuesByType, getDeclaredMetadata, getDeclaredStereotypeAnnotationNames, getDefaultValue, getDefaultValue, getDefaultValue, getDefaultValue, getDefaultValues, getStereotypeAnnotationNames, getTargetAnnotationMetadata, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValues, getValues, hasAnnotation, hasAnnotation, hasDeclaredAnnotation, hasDeclaredAnnotation, hasDeclaredStereotype, hasDeclaredStereotype, hasDeclaredStereotype, hasPropertyExpressions, hasSimpleAnnotation, hasSimpleDeclaredAnnotation, hasStereotype, hasStereotype, hasStereotype, hasStereotype, intValue, intValue, intValue, isAnnotationPresent, isDeclaredAnnotationPresent, isEmpty, isFalse, isFalse, isPresent, isPresent, isRepeatableAnnotation, isRepeatableAnnotation, isTrue, isTrue, longValue, longValue, stringValue, stringValue, stringValue, stringValue, stringValues, stringValues, stringValues, stringValues, synthesize, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByTypeMethods inherited from interface io.micronaut.inject.BeanContextConditional
isEnabledMethods inherited from interface io.micronaut.inject.BeanDefinition
asArgument, findMethod, findPossibleMethods, getBeanDescription, getBeanDescription, getConstructor, getContainerElement, getDeclaredQualifier, getDeclaringType, getExecutableMethods, getGenericBeanType, getInjectedFields, getInjectedMethods, getName, getPostConstructMethods, getPreDestroyMethods, getRequiredComponents, getRequiredMethod, getScope, getScopeName, getTypeArguments, getTypeArguments, getTypeArguments, getTypeInformation, getTypeParameters, getTypeParameters, hasAnnotatedMethod, isCandidateBean, isIterable, isProxy, resolveDynamicQualifierMethods inherited from interface io.micronaut.inject.BeanDefinitionReference
isContextScope, isProxiedBean, isProxyTarget, loadMethods inherited from interface io.micronaut.inject.BeanType
getBeanName, getExposedTypes, isContainerType, isPrimary, requiresMethodProcessingMethods inherited from interface io.micronaut.inject.InstantiatableBeanDefinition
instantiate
-
Field Details
-
ANNOTATION_METADATA
-
-
Constructor Details
-
InterceptorRegistryBean
public InterceptorRegistryBean()
-
-
Method Details
-
isEnabled
public boolean isEnabled(@NonNull @NonNull BeanContext context, BeanResolutionContext resolutionContext) Description copied from interface:BeanContextConditionalReturn whether this component is enabled for the given context.- Specified by:
isEnabledin interfaceBeanContextConditional- Parameters:
context- The contextresolutionContext- The bean resolution context- Returns:
- True if it is
-
getBeanType
Description copied from interface:BeanTypeReturns the bean type.- Specified by:
getBeanTypein interfaceBeanDefinition<InterceptorRegistry>- Specified by:
getBeanTypein interfaceBeanInfo<InterceptorRegistry>- Specified by:
getBeanTypein interfaceBeanType<InterceptorRegistry>- Returns:
- The produced bean type
-
getBeanDefinitionName
- Specified by:
getBeanDefinitionNamein interfaceBeanDefinitionReference<InterceptorRegistry>- Returns:
- The class name of the backing
BeanDefinition
-
load
Description copied from interface:BeanDefinitionReferenceLoads the bean definition.- Specified by:
loadin interfaceBeanDefinitionReference<InterceptorRegistry>- Returns:
- The loaded component definition or null if it shouldn't be loaded
-
isPresent
public boolean isPresent()- Specified by:
isPresentin interfaceBeanDefinitionReference<InterceptorRegistry>- Returns:
- Is the underlying bean type present on the classpath
-
isSingleton
public boolean isSingleton()- Specified by:
isSingletonin interfaceBeanDefinition<InterceptorRegistry>- Specified by:
isSingletonin interfaceBeanDefinitionReference<InterceptorRegistry>- Returns:
- Whether the scope is singleton
-
isConfigurationProperties
public boolean isConfigurationProperties()- Specified by:
isConfigurationPropertiesin interfaceBeanDefinition<InterceptorRegistry>- Specified by:
isConfigurationPropertiesin interfaceBeanDefinitionReference<InterceptorRegistry>- Returns:
- Is the type configuration properties.
-
isAbstract
public boolean isAbstract()- Specified by:
isAbstractin interfaceBeanDefinition<InterceptorRegistry>- Returns:
- Whether the bean definition is abstract
-
instantiate
@NonNull public @NonNull InterceptorRegistry instantiate(@NonNull @NonNull BeanResolutionContext resolutionContext, @NonNull @NonNull BeanContext context) throws BeanInstantiationException Description copied from interface:InstantiatableBeanDefinitionBuilds a bean instance.- Specified by:
instantiatein interfaceInstantiatableBeanDefinition<InterceptorRegistry>- Parameters:
resolutionContext- The bean resolution contextcontext- The context- Returns:
- The instance
- Throws:
BeanInstantiationException- if the instance could not be instantiated
-
getAnnotationMetadata
Description copied from interface:AnnotationMetadataProviderSupplies the metadata. Defaults toAnnotationMetadata.EMPTY_METADATA.- Specified by:
getAnnotationMetadatain interfaceAnnotationMetadataProvider- Returns:
- The
AnnotationMetadata
-