Class AnnotationScopeMetadataResolver

  • java.lang.Object
    • org.springframework.context.annotation.AnnotationScopeMetadataResolver
    • Field Detail

      • scopeAnnotationType

        protected java.lang.Class<? extends java.lang.annotation.Annotation> scopeAnnotationType
    • Method Detail

      • setScopeAnnotationType

        public void setScopeAnnotationType(java.lang.Class<? extends java.lang.annotation.Annotation> scopeAnnotationType)
        Set the type of annotation that is checked for by this AnnotationScopeMetadataResolver.
        scopeAnnotationType - the target annotation type
      • resolveScopeMetadata

        public ScopeMetadata resolveScopeMetadata(BeanDefinition definition)
        Description copied from interface: ScopeMetadataResolver
        Resolve the ScopeMetadata appropriate to the supplied bean definition.

        Implementations can of course use any strategy they like to determine the scope metadata, but some implementations that spring immediately to mind might be to use source level annotations present on the class of the supplied definition, or to use metadata present in the AttributeAccessor.attributeNames() of the supplied definition.

        Specified by:
        resolveScopeMetadata in interface ScopeMetadataResolver
        definition - the target bean definition
        the relevant scope metadata; never null