|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jgroups.conf.ClassConfigurator
This class will be replaced with the class that read info
from the magic number configurator that reads info from the xml file.
The name and the relative path of the magic number map file can be specified
as value of the property org.jgroups.conf.magicNumberFile
.
It must be relative to one of the classpath elements, to allow the
classloader to locate the file. If a value is not specified,
MagicNumberReader.MAGIC_NUMBER_FILE
is used, which defaults
to "jg-magic-map.xml".
MagicNumberReader
Field Summary | |
protected org.apache.commons.logging.Log |
log
|
Method Summary | |
java.lang.Class |
get(int magic)
Returns a class for a magic number. |
java.lang.Class |
get(java.lang.String clazzname)
Loads and returns the class from the class name |
static ClassConfigurator |
getInstance(boolean init)
|
int |
getMagicNumber(java.lang.Class clazz)
Returns the magic number for the class. |
int |
getMagicNumberFromObjectStreamClass(java.io.ObjectStreamClass objStream)
|
java.io.ObjectStreamClass |
getObjectStreamClassFromMagicNumber(int magic_number)
|
void |
init()
|
static void |
main(java.lang.String[] args)
|
java.lang.String |
printClassMap()
|
java.lang.String |
printMagicMap()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected final org.apache.commons.logging.Log log
Method Detail |
public void init() throws ChannelException
ChannelException
public static ClassConfigurator getInstance(boolean init) throws ChannelException
ChannelException
public java.lang.Class get(int magic)
magic
- the magic number that maps to the class
public java.lang.Class get(java.lang.String clazzname)
clazzname
- a fully classified class name to be loaded
public int getMagicNumber(java.lang.Class clazz)
clazz
- a class object that we want the magic number for
public int getMagicNumberFromObjectStreamClass(java.io.ObjectStreamClass objStream)
public java.io.ObjectStreamClass getObjectStreamClassFromMagicNumber(int magic_number)
public java.lang.String toString()
public java.lang.String printMagicMap()
public java.lang.String printClassMap()
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |