public final class FileClassManager extends AbstractClassManager implements ParentClassManager
ParentClassManager that stores class definitions in a
directory tree rooted at a provided location.| Constructor and Description |
|---|
FileClassManager(File rootDirectory)
Creates a new
FileClassManager. |
FileClassManager(String rootDirectory)
Creates a new
FileClassManager. |
| Modifier and Type | Method and Description |
|---|---|
ca.eandb.jdcp.server.classmanager.FileClassManager.FileChildClassManager |
createChildClassManager()
Creates a new child
ClassManager. |
ChildClassManager |
getChildClassManager(int id)
Retrieves an existing
ChildClassManager. |
ByteBuffer |
getClassDefinition(String name) |
byte[] |
getClassDigest(String name)
Gets the MD5 digest of the class definition.
|
void |
setClassDefinition(String name,
ByteBuffer def)
Sets a class definition.
|
setClassDefinitionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetClassDefinitionpublic FileClassManager(String rootDirectory) throws IllegalArgumentException
FileClassManager.rootDirectory - The working directory.IllegalArgumentException - If rootDirectory does not
refer to a directory.public FileClassManager(File rootDirectory) throws IllegalArgumentException
FileClassManager.rootDirectory - The working directory.IllegalArgumentException - If rootDirectory does not
refer to a directory.public ChildClassManager getChildClassManager(int id)
ParentClassManagerChildClassManager.getChildClassManager in interface ParentClassManagerid - The identifier for the ChildClassManager to
retrieve.ChildClassManager with the specified ID, or
null if there is no such child.public byte[] getClassDigest(String name)
ClassManagergetClassDigest in interface ClassManagername - The fully qualified name of the class.public void setClassDefinition(String name, ByteBuffer def)
ClassManagersetClassDefinition in interface ClassManagername - The fully qualified name of the class to define.def - A ByteBuffer containing the definition of the
class.public ByteBuffer getClassDefinition(String name)
getClassDefinition in interface ca.eandb.util.classloader.ClassLoaderStrategypublic ca.eandb.jdcp.server.classmanager.FileClassManager.FileChildClassManager createChildClassManager()
ParentClassManagerClassManager.createChildClassManager in interface ParentClassManagerClassManager.Copyright © 2014. All rights reserved.