public class SpringUtils extends Object
Constructor and Description |
---|
SpringUtils() |
Modifier and Type | Method and Description |
---|---|
static <B> B |
getInstance(ApplicationContext applicationContext,
Class<B> clazz) |
static <B> B |
getOrCreate(ApplicationContext applicationContext,
Class<B> clazz) |
static <B> B |
instantiate(ApplicationContext applicationContext,
Class<B> clazz) |
static <B> void |
registerBean(ApplicationContext applicationContext,
B instance) |
public static <B> B getOrCreate(ApplicationContext applicationContext, Class<B> clazz) throws BeansException
BeansException
public static <B> B instantiate(ApplicationContext applicationContext, Class<B> clazz) throws BeansException
BeansException
public static <B> void registerBean(ApplicationContext applicationContext, B instance) throws BeansException
BeansException
public static <B> B getInstance(ApplicationContext applicationContext, Class<B> clazz) throws BeansException
BeansException
Copyright © 2010-2014 ArcBees. All Rights Reserved.