public final class DbClassManager extends AbstractClassManager implements ParentClassManager
| Constructor and Description |
|---|
DbClassManager(DataSource ds) |
| Modifier and Type | Method and Description |
|---|---|
ChildClassManager |
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 |
prepareDataSource() |
void |
setClassDefinition(String name,
ByteBuffer def)
Sets a class definition.
|
setClassDefinitionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetClassDefinitionpublic DbClassManager(DataSource ds)
public void prepareDataSource()
throws SQLException
SQLExceptionpublic ChildClassManager createChildClassManager()
ParentClassManagerClassManager.createChildClassManager in interface ParentClassManagerClassManager.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 ByteBuffer getClassDefinition(String name)
getClassDefinition in interface ca.eandb.util.classloader.ClassLoaderStrategypublic 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.Copyright © 2014. All rights reserved.