1 package org.wamblee.system.spring;
3 import org.springframework.beans.factory.FactoryBean;
6 * Bean which adds a service required by the spring component to
7 * the application context so that other spring beans can use it.
11 class RequiredServiceBean implements FactoryBean {
16 * Constructs the bean.
17 * @param aId Id of the bean in the service registry.
19 public RequiredServiceBean(String aId) {
24 public Object getObject() throws Exception {
25 return SpringComponent.REGISTRY.get().find(_id).reference(Object.class);
29 public Class getObjectType() {
34 public boolean isSingleton() {