public class SingletonBeanRepository extends Object
Constructor and Description |
---|
SingletonBeanRepository() |
Modifier and Type | Method and Description |
---|---|
static void |
clear()
Clears the repository
|
static void |
close()
Closes the repository and executes autowiring on all registered beans
|
static <T> T |
getBean(Class<T> clazz) |
static void |
open()
Opens the repository for accepting beans
|
static <T> void |
registerBean(Class<T> clazz) |
static void |
registerBean(Object object) |
public static void open()
public static void clear()
public static <T> T getBean(Class<T> clazz)
clazz
- public static <T> void registerBean(Class<T> clazz) throws BeanInitialisationException
BeanInitialisationException
public static void registerBean(Object object)
public static void close() throws BeanException
BeanException
Copyright © 2014. All rights reserved.