public interface BeanContainer extends SimpleBeanContainer
| Modifier and Type | Field and Description |
|---|---|
static String |
ANONYMOUS_BEAN_PREFIX
Prefix used for declaring all anonymous Beans
|
static String |
PROTOTYPE_BEAN_PREFIX
Prefix used for declaring all instances of prototype Beans
|
| Modifier and Type | Method and Description |
|---|---|
void |
addOrReplaceProperty(Property prop,
Collection<Property> properties)
Update a collection of properties while registering potential references in the container (for prototype resolution)
|
Bean |
duplicateBean(String id,
String alias,
Bean source,
boolean isAnonymous)
Duplicate a Bean's definition, changing id, alias and anonymous status on the fly
|
String |
generateAnonymousBeanId() |
LinkedHashSet<String> |
getOrderedBeanIds()
Resolve beans dependencies to order them so that for each Bean, all its dependencies are ordered before it
|
LinkedList<Bean> |
getOrderedBeans()
Resolve beans dependencies to order them so that for each Bean, all its dependencies are ordered before it
|
void |
register(Bean bean)
Register a Bean in the container
|
void |
register(Map<String,Bean> beans)
Register a set of Beans in the container
|
void |
registerAlias(String beanName,
String alias)
Register a name alias
|
void |
registerParent(DefinitionDependency dependency)
Register a bean -> parent dependency
|
void |
registerRunTimeDependency(RunTimeDependency dependency)
Register a bean -> run dependency
|
getBean, getBeansstatic final String ANONYMOUS_BEAN_PREFIX
static final String PROTOTYPE_BEAN_PREFIX
Bean duplicateBean(String id, String alias, Bean source, boolean isAnonymous)
id - of the duplicated Beanalias - of the duplicated Beansource - Bean to be duplicatedisAnonymous - whether the duplicated Bean should be anonymous or notString generateAnonymousBeanId()
void register(Bean bean)
bean - void register(Map<String,Bean> beans)
beans - void registerParent(DefinitionDependency dependency)
dependency - to be registeredvoid registerRunTimeDependency(RunTimeDependency dependency)
dependency - to be registeredvoid registerAlias(String beanName, String alias)
beanName - to be referenced by the aliasalias - of the Beanvoid addOrReplaceProperty(Property prop, Collection<Property> properties)
prop - the Property to addproperties - Collection of existing propertiesLinkedHashSet<String> getOrderedBeanIds()
LinkedList<Bean> getOrderedBeans()
Copyright © 2012-2013 Static IOC OSS project. All Rights Reserved.