org.openbp.common
Class SpringUtil

java.lang.Object
  extended by org.openbp.common.SpringUtil

public final class SpringUtil
extends java.lang.Object

Spring framework utilities.

Author:
Heiko Erhardt

Method Summary
static void autowireBean(java.lang.Object bean, org.springframework.context.ApplicationContext applicationContext)
          Performs Spring autowiring for a non-Spring-managed bean.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

autowireBean

public static void autowireBean(java.lang.Object bean,
                                org.springframework.context.ApplicationContext applicationContext)
Performs Spring autowiring for a non-Spring-managed bean. This will resolve the @Autowired annotations of the bean members.

Parameters:
bean - Bean to wire
applicationContext - Application context that will be used to resolve autowired bean members


Copyright © 2011. All Rights Reserved.