com.deltax.cpacker
Class ClassPacker.PropertiesImplNameProvider

java.lang.Object
  |
  +--com.deltax.cpacker.ClassPacker.PropertiesImplNameProvider
Enclosing class:
ClassPacker

public static class ClassPacker.PropertiesImplNameProvider
extends java.lang.Object
implements ClassPacker.RmiImplNameProvider

A class which uses property files to determine implementations for RMI Remote interfaces. The property file must contain couples:

interface name : implementation class name

as in

 # RMI Implementation definitions for MyApplication
 #
 com.deltax.util.session.SessionManager : com.deltax.util.session.impl.SessionManagerImpl
 com.deltax.myapp.HelloObject : com.deltax.myapp.HelloObjectImpl
 
If no property file is specified (passing null as filename on construction), the same conventions as DefaultImplNameProvider are used. However, if a file is specified and it does not contain an implementation definition for a given class, the class is reported as missing.


Constructor Summary
ClassPacker.PropertiesImplNameProvider(java.lang.String propertiesFile)
          Attempts to load the given property file which defines the associations between Remote interfaces and their implementations
 
Method Summary
 java.lang.String[] getImplSkelNames(java.lang.String interfaceName)
          Given an interface name, an array containing all the possible names for implementation skeleton (built following some convention defined by the provider) is returned.
 java.lang.String[] getImplStubNames(java.lang.String interfaceName)
          Given an interface name, an array containing all the possible names for implementation stub (built following some convention defined by the provider) is returned.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassPacker.PropertiesImplNameProvider

public ClassPacker.PropertiesImplNameProvider(java.lang.String propertiesFile)
                                       throws java.io.IOException
Attempts to load the given property file which defines the associations between Remote interfaces and their implementations
Method Detail

getImplSkelNames

public java.lang.String[] getImplSkelNames(java.lang.String interfaceName)
Description copied from interface: ClassPacker.RmiImplNameProvider
Given an interface name, an array containing all the possible names for implementation skeleton (built following some convention defined by the provider) is returned.
Specified by:
getImplSkelNames in interface ClassPacker.RmiImplNameProvider

getImplStubNames

public java.lang.String[] getImplStubNames(java.lang.String interfaceName)
Description copied from interface: ClassPacker.RmiImplNameProvider
Given an interface name, an array containing all the possible names for implementation stub (built following some convention defined by the provider) is returned.
Specified by:
getImplStubNames in interface ClassPacker.RmiImplNameProvider