Class CustomScopeAnnotationConfigurer

java.lang.Object
org.joinfaces.autoconfigure.scopemapping.CustomScopeAnnotationConfigurer
All Implemented Interfaces:
org.springframework.beans.factory.config.BeanFactoryPostProcessor, org.springframework.core.Ordered

public class CustomScopeAnnotationConfigurer extends 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.
  • Constructor Details

    • CustomScopeAnnotationConfigurer

      public CustomScopeAnnotationConfigurer()
  • Method Details

    • 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 String deduceScopeName(org.springframework.core.type.MethodMetadata factoryMethodMetadata)
    • deduceScopeName

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

      public void addMapping(Class<? extends Annotation> annotation, String scopeName)
    • addMapping

      public void addMapping(AnnotationToScopeMapping annotationToScopeMapping)
    • getAnnotationToScopeMappings

      public List<AnnotationToScopeMapping> getAnnotationToScopeMappings()
    • setAnnotationToScopeMappings

      public void setAnnotationToScopeMappings(List<AnnotationToScopeMapping> annotationToScopeMappings)
    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface org.springframework.core.Ordered
    • setOrder

      public void setOrder(int order)