com.ibm.oti.shared
Class SharedClassAbstractHelper

java.lang.Object
  extended by com.ibm.oti.shared.SharedClassAbstractHelper
All Implemented Interfaces:
SharedClassHelper
Direct Known Subclasses:
SharedClassTokenHelperImpl, SharedClassURLClasspathHelperImpl, SharedClassURLHelperImpl

public abstract class SharedClassAbstractHelper
extends java.lang.Object
implements SharedClassHelper

Abstract SharedClassHelper provides common functions and data to helper subclasses.

Version:
initial
Author:
OTI
See Also:
SharedClassHelper

Constructor Summary
SharedClassAbstractHelper()
           
 
Method Summary
 java.lang.ClassLoader getClassLoader()
          Returns the ClassLoader that this SharedClassHelper belongs to
 boolean isSharedClassCookie(byte[] classBytes)
          Utility function.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SharedClassAbstractHelper

public SharedClassAbstractHelper()
Method Detail

getClassLoader

public java.lang.ClassLoader getClassLoader()
Description copied from interface: SharedClassHelper
Returns the ClassLoader that this SharedClassHelper belongs to

Specified by:
getClassLoader in interface SharedClassHelper
Returns:
ClassLoader ClassLoader that this SharedClassHelper belongs to

isSharedClassCookie

public boolean isSharedClassCookie(byte[] classBytes)
Utility function. Determines whether a byte array being passed to defineClass is a class found in the shared class cache, or a class found locally.

Parameters:
classBytes - a potential shared class cookie
Returns:
true if bytes are a cookie.