org.jcreme.enumerations
Class RemoteEnumerationInitializerImpl
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
org.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
Fields inherited from class java.rmi.server.RemoteObject |
ref |
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 |
serialVersionUID
static final long serialVersionUID
- See Also:
- Constant Field Values
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.
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.