BeanRegistry, ComponentContextBeanRegistrypublic abstract class AbstractBeanRegistry extends AbstractBeanFactory implements BeanRegistry
Created: 2009. 03. 09 PM 23:48:09
beanRuleRegistry, context, log| Constructor | Description |
|---|---|
AbstractBeanRegistry(ActivityContext context,
BeanRuleRegistry beanRuleRegistry,
BeanProxifierType beanProxifierType) |
| 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.
|
protected abstract <T> T |
getBean(BeanRule beanRule) |
|
<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.
|
createBean, doDestroy, doInitialize, getFactoryProducedObjectdestroy, getComponentName, initialize, isAvailable, isDestroyed, isInitializedpublic AbstractBeanRegistry(ActivityContext context, BeanRuleRegistry beanRuleRegistry, BeanProxifierType beanProxifierType)
public <T> T getBean(java.lang.String id)
BeanRegistrygetBean in interface BeanRegistryT - the generic typeid - the id of the bean to retrievepublic <T> T getBean(java.lang.Class<T> requiredType)
BeanRegistrygetBean in interface BeanRegistryT - the generic typerequiredType - the type the bean must match; can be an interface or superclass. null is disallowed.public <T> T getBean(java.lang.String id,
java.lang.Class<T> requiredType)
BeanRegistrygetBean in interface BeanRegistryT - the generic typeid - the id of the bean to retrieverequiredType - type the bean must match; can be an interface or superclass. null is disallowed.public <T> T getBean(java.lang.Class<T> requiredType,
java.lang.String id)
BeanRegistrygetBean in interface BeanRegistryT - 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.public <T> T getConfigBean(java.lang.Class<T> requiredType)
BeanRegistryBeanNotOfRequiredTypeException.getConfigBean in interface BeanRegistryT - the generic typerequiredType - type the bean must match; can be an interface or superclass. null is disallowed.public boolean containsBean(java.lang.String id)
BeanRegistrycontainsBean in interface BeanRegistryid - the id of the bean to querypublic boolean containsBean(java.lang.Class<?> requiredType)
BeanRegistrycontainsBean in interface BeanRegistryrequiredType - the object type of the bean to queryprotected abstract <T> T getBean(BeanRule beanRule)
Copyright © 2008–2018 The Aspectran Project. All rights reserved.