org.viewaframework.integration.spring
Class SpringContext

java.lang.Object
  extended by org.viewaframework.integration.spring.SpringContext
All Implemented Interfaces:
IOCContext

public class SpringContext
extends Object
implements IOCContext

This class encapsules a IOC container. This time the Spring beanFactory.

Since:
1.0.2
Author:
Mario Garcia

Field Summary
 
Fields inherited from interface org.viewaframework.ioc.IOCContext
ID
 
Constructor Summary
SpringContext(org.springframework.beans.factory.BeanFactory factoryBean)
           
 
Method Summary
 Object getBean(String name)
          This method should return a given bean named equally as the name passed as parameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpringContext

public SpringContext(org.springframework.beans.factory.BeanFactory factoryBean)
Parameters:
factoryBean -
Method Detail

getBean

public Object getBean(String name)
Description copied from interface: IOCContext
This method should return a given bean named equally as the name passed as parameter

Specified by:
getBean in interface IOCContext
Parameters:
name - The name or id of the bean inside the IOC container
Returns:
The object referenced


Copyright © 2010. All Rights Reserved.