jfun.yan.spring
Interface SpringContext

All Known Implementing Classes:
SpringBeanNut, SpringCtorNut, SpringMethodNut, WebSpringBeanNut, WebSpringCtorNut, WebSpringMethodNut

public interface SpringContext

The context containing all the necessary spring information.

Author:
Ben Yu Nov 17, 2005 12:06:13 AM

Method Summary
 void addBeanPostProcessor(java.lang.String key, Component bpp)
          Notify the framework there is a BeanPostProcessor!
 Component cast(java.lang.Class target_type, Component c)
          Convert a Component so that it instantiates objects of a certain type.
 java.lang.Object convert(java.lang.Class target_type, java.lang.Object val)
          Convert a an object to a target type.
 org.springframework.context.ApplicationContext getApplicationContext()
          Get the spring BeanFactory object.
 java.lang.String getId()
          Get the id used to declare this component.
 SingletonMode getSingleton()
          Get the configured singleton mode.
 java.lang.String getTagName()
          Get the tag name.
 boolean isGloballyDefined()
          Is the tag defined globally?
 boolean isSingletonAttributeSet()
          Is the singleton mode configured?
 void manageDisposableBean(org.springframework.beans.factory.DisposableBean db)
          Manage the lifecycle of a Disposable Bean.
 

Method Detail

getTagName

java.lang.String getTagName()
Get the tag name.


getId

java.lang.String getId()
Get the id used to declare this component.


getApplicationContext

org.springframework.context.ApplicationContext getApplicationContext()
Get the spring BeanFactory object.


manageDisposableBean

void manageDisposableBean(org.springframework.beans.factory.DisposableBean db)
Manage the lifecycle of a Disposable Bean.

Parameters:
db - the disposable bean.

addBeanPostProcessor

void addBeanPostProcessor(java.lang.String key,
                          Component bpp)
Notify the framework there is a BeanPostProcessor!

Parameters:
key - the key of the bean.
bpp - the component for the BeanPostProcessor.

convert

java.lang.Object convert(java.lang.Class target_type,
                         java.lang.Object val)
Convert a an object to a target type.

Parameters:
target_type - the desired type.
val - the object to be converted.
Returns:
the object of the desired type.

cast

Component cast(java.lang.Class target_type,
               Component c)
Convert a Component so that it instantiates objects of a certain type.

Parameters:
target_type - the desired instance type.
c - the Component to be converted.
Returns:
the new Component object.

getSingleton

SingletonMode getSingleton()
Get the configured singleton mode.


isSingletonAttributeSet

boolean isSingletonAttributeSet()
Is the singleton mode configured?


isGloballyDefined

boolean isGloballyDefined()
Is the tag defined globally?