public class ScopeBeanFactory extends Object
| Constructor and Description |
|---|
ScopeBeanFactory(ScopeBeanFactory parent,
ExtensionAccessor extensionAccessor) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
<T> T |
getBean(Class<T> type) |
<T> T |
getBean(String name,
Class<T> type) |
<T> List<T> |
getBeansOfType(Class<T> type) |
<T> T |
getOrRegisterBean(Class<T> type) |
<T> T |
getOrRegisterBean(Class<T> type,
Function<? super Class<T>,? extends T> mappingFunction) |
<T> T |
getOrRegisterBean(String name,
Class<T> type) |
<T> T |
getOrRegisterBean(String name,
Class<T> type,
Function<? super Class<T>,? extends T> mappingFunction) |
List<Class<?>> |
getRegisteredClasses() |
boolean |
isDestroyed() |
<T> T |
registerBean(Class<T> bean) |
void |
registerBean(Object bean) |
<T> T |
registerBean(String name,
Class<T> clazz) |
void |
registerBean(String name,
Object bean) |
public ScopeBeanFactory(ScopeBeanFactory parent, ExtensionAccessor extensionAccessor)
public <T> T registerBean(Class<T> bean) throws ScopeBeanException
ScopeBeanExceptionpublic <T> T registerBean(String name, Class<T> clazz) throws ScopeBeanException
ScopeBeanExceptionpublic void registerBean(Object bean)
public <T> T getOrRegisterBean(Class<T> type)
public <T> T getOrRegisterBean(Class<T> type, Function<? super Class<T>,? extends T> mappingFunction)
public <T> T getOrRegisterBean(String name, Class<T> type, Function<? super Class<T>,? extends T> mappingFunction)
public <T> T getBean(Class<T> type)
public void destroy()
public boolean isDestroyed()
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.