com.gigaspaces.grid.bean
Class SpringDiscardManager

java.lang.Object
  extended by com.gigaspaces.grid.bean.SpringDiscardManager
All Implemented Interfaces:
org.jini.rio.core.jsb.DiscardManager

public class SpringDiscardManager
extends java.lang.Object
implements org.jini.rio.core.jsb.DiscardManager

Destroys the Spring application context once the bean is destroyed.


Constructor Summary
SpringDiscardManager(org.springframework.context.support.AbstractApplicationContext springContext, org.jini.rio.core.jsb.DiscardManager discardManager)
          Create a SpringDiscardManager, destroying the Spring application context, and delegating to the infrastructure created DiscardManager upon service discard notification
 
Method Summary
 void discard()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpringDiscardManager

public SpringDiscardManager(org.springframework.context.support.AbstractApplicationContext springContext,
                            org.jini.rio.core.jsb.DiscardManager discardManager)
Create a SpringDiscardManager, destroying the Spring application context, and delegating to the infrastructure created DiscardManager upon service discard notification

Parameters:
springContext - The Spring application context AbstractApplicationContext
discardManager - The infrastructure created DiscardManager
Throws:
java.lang.NullPointerException - if either parameter is null
Method Detail

discard

public void discard()
Specified by:
discard in interface org.jini.rio.core.jsb.DiscardManager
See Also:
DiscardManager.discard()


Copyright (c) 2007 GigaSpaces Technologies, Inc.
All Rights Reserved.