Overview | Package | Class | Tree | Index | Help

Oracle® Coherence Java API Reference
v3.5.3
E15583-01
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.tangosol.io
Interface ClassLoaderAware

All Known Subinterfaces:
  CacheService, Cluster, Controllable, DistributedCacheService, InvocationService, PartitionedService, Service, Service

All Known Implementing Classes:
  ConfigurablePofContext, DefaultSerializer, NearCache, SafeConfigurablePofContext, VersionedNearCache

    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

Overview | Package | Class | Tree | Index | Help

Oracle® Coherence Java API Reference
v3.5.3
E15583-01
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000, 2010, Oracle. All rights reserved.