|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.1.0) E17493-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.javatools.data.HashStructureAdapter oracle.ide.extension.LazyClassAdapter
public final class LazyClassAdapter
LazyClassAdapter is a hash structure adapter that can retrieve instances
of a class declared in an extension manifest. It is intended to be used
in conjunction with HashStructureHook
.
Use the createInstance( Class, String )
method to create a new instance of
some class specified in the structure. The keyName should be the location
of the fully qualified class name within the hash structure.
The class will be loaded in the context of the classloader for the extension that declared the fully qualified class name in its extension manifest.
Field Summary |
---|
Fields inherited from class oracle.javatools.data.HashStructureAdapter |
---|
_hash |
Method Summary | ||
---|---|---|
|
createInstance(java.lang.Class<T> clazz,
java.lang.String keyName)
Creates a new instance of a class specified in this hash structure. |
|
static LazyClassAdapter |
getInstance(HashStructure hash)
Creates an instance of this adapter for the specified hash structure. |
|
|
getMetaClass(java.lang.String keyName)
Gets the meta class for the specified key. |
Methods inherited from class oracle.javatools.data.HashStructureAdapter |
---|
addStructureChangeListener, containsKey, copyTo, copyToImpl, equals, equalsImpl, findOrCreate, forcedCopyTo, getHashStructure, removeStructureChangeListener, useObjectEquals |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static LazyClassAdapter getInstance(HashStructure hash)
hash
- hash structure to adapt.
public <T> T createInstance(java.lang.Class<T> clazz, java.lang.String keyName)
clazz
- the expected type / superclass of the class.keyName
- the name of the key to look up for the fully qualified
class name. Must not be null.
public <T> MetaClass<T> getMetaClass(java.lang.String keyName)
keyName
- the key to look up for the meta class. Must not be
null.
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.1.0) E17493-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |