public interface BeanProvider
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Destroys this bean provider.
|
default <T> T |
get(Class<T> beanType)
Gets the given
beanType typed default requested bean
with no name. |
default <T> T |
get(Class<T> beanType,
boolean lazy)
Gets the given
beanType typed default requested bean
with no name. |
<T> T |
get(Class<T> beanType,
String beanName)
Gets the given
beanType typed requested bean
associated with the given beanName name. |
default <T> T |
get(Class<T> beanType,
String beanName,
boolean lazy)
Gets the given
beanType typed requested bean
associated with the given beanName name. |
<T> List<T> |
getAll(Class<T> beanType)
Gets the all given
beanType typed beans. |
void |
reset()
Resets this bean provider by clearing current beans.
|
<T> T get(Class<T> beanType, String beanName)
beanType typed requested bean
associated with the given beanName name.T - generic type of the beanbeanType - interface Class of the requested beanbeanName - name of the requested beandefault <T> T get(Class<T> beanType)
beanType typed default requested bean
with no name.T - generic type of the beanbeanType - interface Class of the requested beandefault <T> T get(Class<T> beanType, String beanName, boolean lazy)
beanType typed requested bean
associated with the given beanName name.T - generic type of the beanbeanType - interface Class of the requested beanbeanName - name of the requested beanlazy - true if the provided beans should be loaded lazy
when it first used, false otherwisedefault <T> T get(Class<T> beanType, boolean lazy)
beanType typed default requested bean
with no name.T - generic type of the beanbeanType - interface Class of the requested beanlazy - true if the provided beans should be loaded lazy
when it first used, false otherwise<T> List<T> getAll(Class<T> beanType)
beanType typed beans.T - generic type of the beansbeanType - interface Class of the requested beansvoid reset()
void destroy()
Copyright © 2018. All Rights Reserved.