org.springframework.jee.config
Class MetadataDrivenBeanPostProcessorSupport

java.lang.Object
  extended by org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessorAdapter
      extended by org.springframework.jee.config.MetadataDrivenBeanPostProcessorSupport
All Implemented Interfaces:
BeanFactoryAware, BeanPostProcessor, InstantiationAwareBeanPostProcessor, Ordered
Direct Known Subclasses:
Jsr250MetadataBeanPostProcessor

public class MetadataDrivenBeanPostProcessorSupport
extends InstantiationAwareBeanPostProcessorAdapter
implements Ordered, BeanFactoryAware

Superclass for post processing singleton definitions, driven by a matching piece of metadata attached to the relevant singleton definition with the given name.

Author:
Rod Johnson

Field Summary
protected  BeanDefinitionRegistry beanDefinitionRegistry
           
protected  Log log
           
protected  BeanFactory owner
           
 
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
 
Constructor Summary
MetadataDrivenBeanPostProcessorSupport(String attributeName)
           
 
Method Summary
protected  Object getMetadata(String beanName)
           
 int getOrder()
           
 void setBeanFactory(BeanFactory bf)
           
 void setOrder(int order)
           
 
Methods inherited from class org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessorAdapter
postProcessAfterInitialization, postProcessAfterInstantiation, postProcessBeforeInitialization, postProcessBeforeInstantiation, postProcessPropertyValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected final Log log

owner

protected BeanFactory owner

beanDefinitionRegistry

protected BeanDefinitionRegistry beanDefinitionRegistry
Constructor Detail

MetadataDrivenBeanPostProcessorSupport

public MetadataDrivenBeanPostProcessorSupport(String attributeName)
Method Detail

setBeanFactory

public void setBeanFactory(BeanFactory bf)
                    throws BeansException
Specified by:
setBeanFactory in interface BeanFactoryAware
Throws:
BeansException

setOrder

public void setOrder(int order)

getOrder

public int getOrder()
Specified by:
getOrder in interface Ordered

getMetadata

protected Object getMetadata(String beanName)


Copyright © 2007 Interface21. All Rights Reserved.