CoherenceTM v3.3
Copyright© 2000-2007 by Oracle Corporation

com.tangosol.io
Interface ClassLoaderAware

All Known Subinterfaces:
CacheService, Cluster, Controllable, DistributedCacheService, InvocationService, PartitionedService, PofContext, Service
All Known Implementing Classes:
ConfigurablePofContext, NullImplementation.NullPofContext, SafeConfigurablePofContext, SimplePofContext, SimpleSerializer

public interface ClassLoaderAware

The ClassLoaderAware interface provides the ability to configure a ClassLoader to be used by the implementing object when loading classes or resources.

Since:
Coherence 3.2
Author:
jh 2006.07.21

Method Summary
 ClassLoader getContextClassLoader()
          Retrieve the context ClassLoader for this object.
 void setContextClassLoader(ClassLoader loader)
          Specify the context ClassLoader for this object.
 

Method Detail

getContextClassLoader

ClassLoader getContextClassLoader()
Retrieve the context ClassLoader for this object. The context ClassLoader is provided by the creator of the object for use by the object when loading classes and resources.

Returns:
the context ClassLoader for this object
See Also:
Thread.getContextClassLoader()

setContextClassLoader

void setContextClassLoader(ClassLoader loader)
Specify the context ClassLoader for this object. The context ClassLoader can be set when the object is created, and allows the creator to provide the appropriate class loader to be used by the object when when loading classes and resources.

Parameters:
loader - the context ClassLoader for this object

CoherenceTM v3.3
Copyright© 2000-2007 by Oracle Corporation