AbstractActivity
, AbstractBeanRegistry
, BasicActivity
, ContextBeanRegistry
, CoreActivity
, CoreTranslet
, DaemonActivity
, DefaultActivity
, EmbeddedActivity
, InstantActivity
, JobActivity
, SessionScopeActivity
, ShellActivity
, WebActivity
public interface BeanRegistry
Modifier and Type | Method | Description |
---|---|---|
boolean |
containsBean(java.lang.Class<?> requiredType) |
Return whether a bean with the specified object type is present.
|
boolean |
containsBean(java.lang.String id) |
Return whether a bean with the specified id is present.
|
<T> T |
getBean(java.lang.Class<T> requiredType) |
Return an instance of the bean that matches the given object type.
|
<T> T |
getBean(java.lang.Class<T> requiredType,
java.lang.String id) |
Return an instance of the bean that matches the given object type.
|
<T> T |
getBean(java.lang.String id) |
Return an instance of the bean that matches the given id.
|
<T> T |
getBean(java.lang.String id,
java.lang.Class<T> requiredType) |
Return an instance of the bean that matches the given id.
|
<T> T |
getConfigBean(java.lang.Class<T> requiredType) |
Return the bean instance that matches the specified object type.
|
<T> T getBean(java.lang.String id)
T
- the generic typeid
- the id of the bean to retrieve<T> T getBean(java.lang.Class<T> requiredType)
T
- the generic typerequiredType
- the type the bean must match; can be an interface or superclass. null
is disallowed.<T> T getBean(java.lang.String id, java.lang.Class<T> requiredType)
T
- the generic typeid
- the id of the bean to retrieverequiredType
- type the bean must match; can be an interface or superclass. null
is disallowed.<T> T getBean(java.lang.Class<T> requiredType, java.lang.String id)
T
- the generic typerequiredType
- type the bean must match; can be an interface or superclass. null
is allowed.id
- the id of the bean to retrieve; if requiredType is null
.<T> T getConfigBean(java.lang.Class<T> requiredType)
BeanNotOfRequiredTypeException
.T
- the generic typerequiredType
- type the bean must match; can be an interface or superclass. null
is disallowed.boolean containsBean(java.lang.String id)
id
- the id of the bean to queryboolean containsBean(java.lang.Class<?> requiredType)
requiredType
- the object type of the bean to queryCopyright © 2008–2018 The Aspectran Project. All rights reserved.