Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.0.0

E18683-01


com.tangosol.io
Interface ClassLoaderAware

All Known Subinterfaces:
CacheService, Cluster, Controllable, DistributedCacheService, InvocationService, PartitionedService, ProxyService, Service, Service
All Known Implementing Classes:
ConfigurablePofContext, DefaultSerializer, NearCache, SafeConfigurablePofContext, VersionedNearCache, WrapperCacheService, WrapperInvocationService, WrapperService

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
 java.lang.ClassLoader getContextClassLoader()
          Retrieve the context ClassLoader for this object.
 void setContextClassLoader(java.lang.ClassLoader loader)
          Specify the context ClassLoader for this object.

 

Method Detail

getContextClassLoader

java.lang.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(java.lang.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

Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.0.0

E18683-01


Copyright © 2000, 2011, Oracle and/or its affiliates. All rights reserved.