Class CustomScopeAnnotationConfigurer

  • All Implemented Interfaces:
    org.springframework.beans.factory.config.BeanFactoryPostProcessor, org.springframework.core.Ordered

    public class CustomScopeAnnotationConfigurer
    extends java.lang.Object
    implements org.springframework.beans.factory.config.BeanFactoryPostProcessor, org.springframework.core.Ordered
    Add custom JSF CDI scope implementations. Picks up JSF and CDI annotations both on types and method bean declarations.
    • Field Summary

      • Fields inherited from interface org.springframework.core.Ordered

        HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addMapping​(java.lang.Class<? extends java.lang.annotation.Annotation> annotation, java.lang.String scopeName)  
      void addMapping​(AnnotationToScopeMapping annotationToScopeMapping)  
      protected java.lang.String deduceScopeName​(org.springframework.core.type.AnnotationMetadata classMetadata)  
      protected java.lang.String deduceScopeName​(org.springframework.core.type.MethodMetadata factoryMethodMetadata)  
      void postProcessBeanFactory​(org.springframework.beans.factory.config.ConfigurableListableBeanFactory clbf)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.springframework.core.Ordered

        getOrder
    • Constructor Detail

      • CustomScopeAnnotationConfigurer

        public CustomScopeAnnotationConfigurer()
    • Method Detail

      • postProcessBeanFactory

        public void postProcessBeanFactory​(org.springframework.beans.factory.config.ConfigurableListableBeanFactory clbf)
                                    throws org.springframework.beans.BeansException
        Specified by:
        postProcessBeanFactory in interface org.springframework.beans.factory.config.BeanFactoryPostProcessor
        Throws:
        org.springframework.beans.BeansException
      • deduceScopeName

        protected java.lang.String deduceScopeName​(org.springframework.core.type.MethodMetadata factoryMethodMetadata)
      • deduceScopeName

        protected java.lang.String deduceScopeName​(org.springframework.core.type.AnnotationMetadata classMetadata)
      • addMapping

        public void addMapping​(java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
                               java.lang.String scopeName)