org.constretto.spring
Class EnvironmentAnnotationConfigurer

java.lang.Object
  extended by org.constretto.spring.EnvironmentAnnotationConfigurer
All Implemented Interfaces:
BeanFactoryPostProcessor

public class EnvironmentAnnotationConfigurer
extends Object
implements BeanFactoryPostProcessor

A BeanFactoryBeanFactoryPostProcessor implementation that will if registered as a bean in a spring context, enable the constretto autowiring capabilities in the container.

May be used on any existing configurations and in combination with all the standard context implementations from the Spring framework.

Author:
Kaare Nilsen

Field Summary
static String INCLUDE_IN_COLLECTIONS
           
 
Constructor Summary
EnvironmentAnnotationConfigurer(AssemblyContextResolver assemblyContextResolver)
           
 
Method Summary
static Environment findEnvironmentAnnotation(Class beanClass)
           
static Environment findEnvironmentMetaAnnotation(Set<Annotation> visited, Annotation[] annotations)
           
 void postProcessBeanFactory(ConfigurableListableBeanFactory configurableListableBeanFactory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INCLUDE_IN_COLLECTIONS

public static final String INCLUDE_IN_COLLECTIONS
See Also:
Constant Field Values
Constructor Detail

EnvironmentAnnotationConfigurer

public EnvironmentAnnotationConfigurer(AssemblyContextResolver assemblyContextResolver)
Method Detail

postProcessBeanFactory

public void postProcessBeanFactory(ConfigurableListableBeanFactory configurableListableBeanFactory)
                            throws BeansException
Specified by:
postProcessBeanFactory in interface BeanFactoryPostProcessor
Throws:
BeansException

findEnvironmentAnnotation

public static Environment findEnvironmentAnnotation(Class beanClass)

findEnvironmentMetaAnnotation

public static Environment findEnvironmentMetaAnnotation(Set<Annotation> visited,
                                                        Annotation[] annotations)


Copyright © 2008-2012. All Rights Reserved.