|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.oti.shared.SharedClassAbstractHelper
com.ibm.oti.shared.SharedClassTokenHelperImpl
public class SharedClassTokenHelperImpl
Implementation of SharedClassTokenHelper.
SharedClassTokenHelper
,
SharedClassHelperFactory
Method Summary | |
---|---|
byte[] |
findSharedClass(java.lang.String token,
java.lang.String className)
Find a class in the shared cache using a specific token and class name. |
boolean |
storeSharedClass(java.lang.String token,
java.lang.Class clazz)
Store a class in the shared cache using a specific token. |
Methods inherited from class com.ibm.oti.shared.SharedClassAbstractHelper |
---|
getClassLoader, isSharedClassCookie |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ibm.oti.shared.SharedClassHelper |
---|
getClassLoader |
Method Detail |
---|
public byte[] findSharedClass(java.lang.String token, java.lang.String className)
SharedClassTokenHelper
A class will be returned only for an exact String match of both the token and class name.
Otherwise, null is returned.
To obtain an instance of the class, the byte[] returned must be passed to defineClass by the caller ClassLoader.
findSharedClass
in interface SharedClassTokenHelper
token
- String.
A token generated by the ClassLoaderclassName
- String.
The name of the class to be found
public boolean storeSharedClass(java.lang.String token, java.lang.Class clazz)
SharedClassTokenHelper
The class being stored must have been defined by the caller ClassLoader.
Returns true if the class is stored successfully or false otherwise.
Will return false if the class being stored was not defined by the caller ClassLoader.
storeSharedClass
in interface SharedClassTokenHelper
token
- String.
A token generated by the ClassLoaderclazz
- Class.
The class to store in the shared cache
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |