jfun.yan.xml.nuts.spring
Class SpringService

java.lang.Object
  extended by jfun.yan.xml.nuts.spring.SpringService

public class SpringService
extends java.lang.Object

SpringService contains all Spring-related data.

Author:
Ben Yu Nov 20, 2005 5:31:22 PM

Constructor Summary
SpringService(org.springframework.context.ApplicationContext actxt, DefaultLifecycleManager manager)
          Create a SpringService object.
 
Method Summary
 void addBeanPostProcessor(java.lang.String key, java.lang.Class type, Component bpp)
          Report an existence of a Component that instantiates BeanPostProcessor.
 org.springframework.context.ApplicationContext getApplicationContext()
          Get the ApplicationContext object.
 BeanPostProcessorQueue getDestructionAwares()
          Get all the DestructionAwareBeanPostProcessor components.
 BeanPostProcessorQueue getProcessorQueue()
          Get all the BeanPostProcessor components.
 void manageDisposableBean(org.springframework.beans.factory.DisposableBean db)
          Report an existence of a DisposableBean object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpringService

public SpringService(org.springframework.context.ApplicationContext actxt,
                     DefaultLifecycleManager manager)
Create a SpringService object.

Parameters:
actxt - the ApplicationContext object.
manager - the lifecycle manager.
Method Detail

getApplicationContext

public org.springframework.context.ApplicationContext getApplicationContext()
Get the ApplicationContext object.


manageDisposableBean

public void manageDisposableBean(org.springframework.beans.factory.DisposableBean db)
Report an existence of a DisposableBean object.

Parameters:
db - the DisposableBean object.

addBeanPostProcessor

public void addBeanPostProcessor(java.lang.String key,
                                 java.lang.Class type,
                                 Component bpp)
Report an existence of a Component that instantiates BeanPostProcessor.

Parameters:
key - the key of the component.
type - the type of the component.
bpp - the component that instantiates BeanPostProcessor.

getProcessorQueue

public BeanPostProcessorQueue getProcessorQueue()
Get all the BeanPostProcessor components.


getDestructionAwares

public BeanPostProcessorQueue getDestructionAwares()
Get all the DestructionAwareBeanPostProcessor components.