org.wamblee.general.spring
Class SpringBeanFactory
java.lang.Object
org.wamblee.general.spring.SpringBeanFactory
- All Implemented Interfaces:
- BeanFactory
public class SpringBeanFactory
- extends Object
- implements BeanFactory
Bean factory which uses Spring. This bean factory cannot be configured
directly in the BeanKernel because it does not
provide a default no-arg constructor. Therefore, it must be delegated to or
it must tbe subclassed to provide a default constructor.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpringBeanFactory
public SpringBeanFactory(String aSelector,
String aFactoryName)
- Constructs the bean factory.
- Parameters:
aSelector - Selector to find the appropriate bean ref context.aFactoryName - Spring bean factory to use.
find
public Object find(String aId)
- Specified by:
find in interface BeanFactory
find
public <T> T find(Class<T> aClass)
- Specified by:
find in interface BeanFactory
find
public <T> T find(String aId,
Class<T> aClass)
- Specified by:
find in interface BeanFactory
getSpringBeanFactory
public org.springframework.beans.factory.BeanFactory getSpringBeanFactory()
- Gets the spring bean factory.
- Returns:
- Spring bean factory.
Copyright © 2011. All Rights Reserved.