public interface BeanFactory
ApplicationContext
.Modifier and Type | Method and Description |
---|---|
Object |
createAndAddBean(ClassLoader loader,
ApplicationContext applicationContext,
Class<?> klass)
Initializes an object of the given Class using the given
ClassLoader and adds the object to the given
ApplicationContext . |
Object |
load(ClassLoader classLoader,
Class<?> javaClass,
ApplicationContext ctx)
Load a bean, not adding it to the given
ApplicationContext . |
Object createAndAddBean(ClassLoader loader, ApplicationContext applicationContext, Class<?> klass)
ClassLoader
and adds the object to the given
ApplicationContext
.loader
- the ClassLoader to use.applicationContext
- the ApplicationContext
to put the bean in.klass
- the Class to load.Object load(ClassLoader classLoader, Class<?> javaClass, ApplicationContext ctx)
ApplicationContext
. But do try to set parameters and load
dependency beans.classLoader
- the ClassLoader to usejavaClass
- the class to loadctx
- the context to use for loading dependencies and settings member variables.Copyright © 2012 redlab.be. All Rights Reserved.