com.gigaspaces.grid.space
Class SpaceProxyPreparer

java.lang.Object
  extended by com.gigaspaces.grid.space.SpaceProxyPreparer
All Implemented Interfaces:
net.jini.security.ProxyPreparer

public class SpaceProxyPreparer
extends java.lang.Object
implements net.jini.security.ProxyPreparer

Ensures that the proxy being used is a non-clustered proxy. This class is used primarily by the Grid Service Manager to manage specific GigaSpace service instances, and may also be used by association management. This class is activated through configuration based dependency injection using the following properties :

For use during service provisioning :

 <ServiceProvisionConfig>
     <Configuration>
         <Component Name="service.provision">
             <Parameter Name="proxyPreparer"
                        Value="new com.gigaspaces.grid.space.SpaceProxyPreparer()"/>
         </Component>
     </Configuration>
 </ServiceProvisionConfig>
 
For use with association management:
 <Association Name=...>
     <Configuration>
         <Component Name="service.association">
             <Parameter Name="proxyPreparer"
                        Value="new com.gigaspaces.grid.space.SpaceProxyPreparer()"/>
         </Component>
     </Configuration>
 </Association>
 


Constructor Summary
SpaceProxyPreparer()
           
 
Method Summary
 java.lang.Object prepareProxy(java.lang.Object proxy)
          Check if the proxy is a clustered proxy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpaceProxyPreparer

public SpaceProxyPreparer()
Method Detail

prepareProxy

public java.lang.Object prepareProxy(java.lang.Object proxy)
                              throws java.rmi.RemoteException
Check if the proxy is a clustered proxy

Specified by:
prepareProxy in interface net.jini.security.ProxyPreparer
Parameters:
proxy - The proxy to prepare
Returns:
If the proxy is an instance of a JSpaceClusteredProxy proxy, return the non-clustered variant, otherwise return the argument itself
Throws:
java.rmi.RemoteException


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