org.onebusaway.container.spring
Class PropertiesBeanPostProcessor

java.lang.Object
  extended by org.onebusaway.container.spring.PropertiesBeanPostProcessor
All Implemented Interfaces:
org.springframework.beans.factory.config.BeanPostProcessor, org.springframework.core.Ordered

public class PropertiesBeanPostProcessor
extends Object
implements org.springframework.beans.factory.config.BeanPostProcessor, org.springframework.core.Ordered

A Spring BeanPostProcessor to add additional values to already-created Properties object.

Author:
bdferris
See Also:
ListBeanPostProcessor, PropertiesBeanPostProcessor

Field Summary
 
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
 
Constructor Summary
PropertiesBeanPostProcessor()
           
 
Method Summary
 int getOrder()
           
 Object postProcessAfterInitialization(Object obj, String beanName)
           
 Object postProcessBeforeInitialization(Object bean, String beanName)
          BeanPostProcessor Interface
 void setOrder(int order)
          Ordered Interface
 void setProperties(Properties properties)
           
 void setTarget(String target)
           
 void setTargets(List<String> targets)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertiesBeanPostProcessor

public PropertiesBeanPostProcessor()
Method Detail

setTarget

public void setTarget(String target)

setTargets

public void setTargets(List<String> targets)

setProperties

public void setProperties(Properties properties)

setOrder

public void setOrder(int order)
Ordered Interface


getOrder

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

postProcessBeforeInitialization

public Object postProcessBeforeInitialization(Object bean,
                                              String beanName)
                                       throws org.springframework.beans.BeansException
BeanPostProcessor Interface

Specified by:
postProcessBeforeInitialization in interface org.springframework.beans.factory.config.BeanPostProcessor
Throws:
org.springframework.beans.BeansException

postProcessAfterInitialization

public Object postProcessAfterInitialization(Object obj,
                                             String beanName)
                                      throws org.springframework.beans.BeansException
Specified by:
postProcessAfterInitialization in interface org.springframework.beans.factory.config.BeanPostProcessor
Throws:
org.springframework.beans.BeansException


Copyright © 2011 OneBusAway. All Rights Reserved.