com.sun.ejb.spi.distributed
Interface ReadOnlyBeanRefreshEventHandler

All Known Implementing Classes:
ReadOnlyBeanContainer

public interface ReadOnlyBeanRefreshEventHandler

ReadOnlyBeanRefreshEventHandler defines the methods that can be used to implement a distributed ReadOnly beans. An instance of ReadOnlyBeanRefreshEventHandler is used to handle requests received from other server instances. An instance of DistributedReadOnlyBeanNotifier is used to notify other server instances.

Author:
Mahesh Kannan
See Also:
DistributedReadOnlyBeanService

Method Summary
 java.lang.ClassLoader getClassLoader()
          Called from DistributedReadOnlyBeanServiceImpl before de-serializing the bean's pk
 void handleRefreshAllRequest()
          Called from DistributedReadOnlyBeanServiceImpl when a refreshAll message arrives at this instance
 void handleRefreshRequest(java.lang.Object pk)
          Called from DistributedReadOnlyBeanServiceImpl when a refresh message arrives at this instance
 

Method Detail

getClassLoader

java.lang.ClassLoader getClassLoader()
Called from DistributedReadOnlyBeanServiceImpl before de-serializing the bean's pk

Returns:
the application class loader

handleRefreshRequest

void handleRefreshRequest(java.lang.Object pk)
Called from DistributedReadOnlyBeanServiceImpl when a refresh message arrives at this instance

Parameters:
pk - the primary key that needs to be refreshed

handleRefreshAllRequest

void handleRefreshAllRequest()
Called from DistributedReadOnlyBeanServiceImpl when a refreshAll message arrives at this instance



Copyright © 2012 GlassFish Community. All Rights Reserved.