org.javalid.external.spring.lookup
Class SpringLookupExtImpl

java.lang.Object
  extended by org.javalid.external.spring.lookup.SpringLookupExtImpl
All Implemented Interfaces:
SpringLookupExt

public class SpringLookupExtImpl
extends java.lang.Object
implements SpringLookupExt

Implements SpringLookupExt, which allows access to spring beans.

Since:
1.0
Version:
1.0
Author:
M.Reuvers

Constructor Summary
SpringLookupExtImpl()
           
 
Method Summary
 java.lang.Object getSpringBean(java.lang.String name)
          This method locates given bean and returns it.
 void setApplicationContext(java.lang.Object context)
          Called by the jv framework when initializing the implementation class (right after jvConfiguration is set).
 void setJvConfigurationWrapper(JvConfigurationWrapper jvConfigWrapper)
          Called by the jv framework when initializing the implementation class (right after constructing an instance).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpringLookupExtImpl

public SpringLookupExtImpl()
Method Detail

getSpringBean

public java.lang.Object getSpringBean(java.lang.String name)
Description copied from interface: SpringLookupExt
This method locates given bean and returns it. Raises a JvLookupException if the spring bean is not found.

Specified by:
getSpringBean in interface SpringLookupExt
Parameters:
name - The name of the spring bean
Returns:
Spring bean if found, exception raised if not (cast to spring bean yourself)

setApplicationContext

public void setApplicationContext(java.lang.Object context)
Description copied from interface: SpringLookupExt
Called by the jv framework when initializing the implementation class (right after jvConfiguration is set). Note the object passed must implement the org.springframework.context.ApplicationContext interface.

Specified by:
setApplicationContext in interface SpringLookupExt
Parameters:
context - Must implement org.springframework.context.ApplicationContext

setJvConfigurationWrapper

public void setJvConfigurationWrapper(JvConfigurationWrapper jvConfigWrapper)
Description copied from interface: SpringLookupExt
Called by the jv framework when initializing the implementation class (right after constructing an instance).

Specified by:
setJvConfigurationWrapper in interface SpringLookupExt
Parameters:
jvConfigWrapper - The configuration of the framework, allowing access to the current configuration.