@ComponentSpecification public interface BeanFactory extends AbstractBeanFactory
| Modifier and Type | Method and Description |
|---|---|
default <BEAN extends Bean> |
create(Class<BEAN> type)
Creates a new simple instance of the specified
Bean. |
<BEAN extends Bean> |
createPrototype(Class<BEAN> type)
Creates a prototype of the given
Bean. |
BeanPrototypeBuilder |
createPrototypeBuilder(boolean dynamic) |
default String |
getQualifiedName(Class<? extends Bean> type) |
default String |
getQualifiedName(Class<? extends Bean> type,
String name) |
copy, create, getPrototype, getReadOnlyBeandefault String getQualifiedName(Class<? extends Bean> type)
type - the Class reflecting the Bean.qualified name.default String getQualifiedName(Class<? extends Bean> type, String name)
type - the Class reflecting the Bean.name - the optional name given at runtime or null.qualified name.BeanPrototypeBuilder createPrototypeBuilder(boolean dynamic)
dynamic - the dynamic flag of the Beans to build.BeanPrototypeBuilder instance.<BEAN extends Bean> BEAN createPrototype(Class<BEAN> type)
Bean. A prototype is used as template to create
regular Beans. Such beans will inherit the defaults from the prototype what are the
available properties as well as their default value.Class for reflection and its Object instance,
this approach makes it a lot easier. The prototype is like the Class where Bean-instances can be
created of that are of the same type.BEAN - the generic type of the Bean.type - the Class reflecting the Bean.Bean.BeanPrototypeBuilder.createPrototype(Class, String, Bean...)Copyright © 2001–2016 mmm-Team. All rights reserved.