001         package com.croftsoft.core.util.state;
002    
003         import java.rmi.*;
004         import java.rmi.server.UnicastRemoteObject;
005    
006         /*********************************************************************
007         *
008         * An adapter for StateListeners of remote States.
009         *
010         * @author
011         *   <a href="https://www.croftsoft.com/">David Wallace Croft</a>
012         * @version
013         *   1998-12-05
014         *********************************************************************/
015    
016         public class  StateListenerProxy
017           extends UnicastRemoteObject implements StateListenerRemote
018         //////////////////////////////////////////////////////////////////////
019         //////////////////////////////////////////////////////////////////////
020         {
021    
022         private StateListener  stateListener;
023    
024         //////////////////////////////////////////////////////////////////////
025         //////////////////////////////////////////////////////////////////////
026    
027         public  StateListenerProxy ( StateListener  stateListener )
028           throws RemoteException
029         //////////////////////////////////////////////////////////////////////
030         {
031           this.stateListener = stateListener;
032         }
033    
034         //////////////////////////////////////////////////////////////////////
035         //////////////////////////////////////////////////////////////////////
036    
037         public void  stateListen ( State  state )
038           throws RemoteException
039         //////////////////////////////////////////////////////////////////////
040         {
041           stateListener.stateListen ( state );
042         }
043    
044         //////////////////////////////////////////////////////////////////////
045         //////////////////////////////////////////////////////////////////////
046         }