org.jcreme.enumerations
Class RemoteEnumerationInitializerImpl

java.lang.Object
  extended byjava.rmi.server.RemoteObject
      extended byjava.rmi.server.RemoteServer
          extended byjava.rmi.server.UnicastRemoteObject
              extended byorg.jcreme.enumerations.RemoteEnumerationInitializerImpl
All Implemented Interfaces:
java.rmi.Remote, RemoteEnumerationInitializer, java.io.Serializable

public class RemoteEnumerationInitializerImpl
extends java.rmi.server.UnicastRemoteObject
implements RemoteEnumerationInitializer

This is the actual class to be used to expose an EnumerationInitializer through RMI. This class acts as a Proxy for another EnumerationInitializer.

Version:
$Revision: 1.3 $
Author:
$Author: dbregeon $
See Also:
Serialized Form

Field Summary
(package private) static long serialVersionUID
           
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
RemoteEnumerationInitializerImpl(EnumerationInitializer actualInitializer)
          Creates a new instance of RemoteEnumerationInitializerImpl
 
Method Summary
 Enumeration[] loadValues(java.lang.Class enumerationClass)
          This method enables to load the values associated with the given class.
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

RemoteEnumerationInitializerImpl

public RemoteEnumerationInitializerImpl(EnumerationInitializer actualInitializer)
                                 throws java.lang.IllegalArgumentException,
                                        java.rmi.RemoteException
Creates a new instance of RemoteEnumerationInitializerImpl

Parameters:
actualInitializer - the initializer to expose through RMI.
Throws:
java.lang.IllegalArgumentException - if the actualInitializer is null.
java.rmi.RemoteException - when an RMI error occurs.
Method Detail

loadValues

public Enumeration[] loadValues(java.lang.Class enumerationClass)
                         throws java.lang.IllegalArgumentException,
                                java.rmi.RemoteException
This method enables to load the values associated with the given class. After a call to this method, the values are available through the usual class methods.

Specified by:
loadValues in interface RemoteEnumerationInitializer
Parameters:
enumerationClass - a subclass of the Enumeration Class.
Returns:
the same class a the enumeration class containing the values.
Throws:
java.lang.IllegalArgumentException - if the given class is null, not a subclass of Enumeration or an abstract sublass of Enumeration.
java.rmi.RemoteException - when an RMI error occurs.


Copyright 2006 null. All Rights Reserved.