Skip navigation links

Oracle® Fusion Middleware Content Integration Suite (CIS) Java API Reference
11g Release 1 (11.1)

E17350-01


com.stellent.cis.common.classloader
Class ContextLoaderSwitcher

java.lang.Object
  extended by com.stellent.cis.common.classloader.ContextLoaderSwitcher


public class ContextLoaderSwitcher
extends java.lang.Object

Allows switching of the context classloader between a custom and already defined loader.


Field Summary
protected  java.lang.ThreadLocal m_contextLoader
           
protected  java.lang.ClassLoader m_customLoader
           

 

Constructor Summary
ContextLoaderSwitcher(java.lang.ClassLoader customLoader)
           

 

Method Summary
 java.lang.ClassLoader getCustomLoader()
           
 boolean isCustomLoaderSet()
           
 void restoreContextLoader()
          Restore the context loader
 void setCustomLoader()
          Set the custom loader

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

m_customLoader

protected java.lang.ClassLoader m_customLoader

m_contextLoader

protected java.lang.ThreadLocal m_contextLoader

Constructor Detail

ContextLoaderSwitcher

public ContextLoaderSwitcher(java.lang.ClassLoader customLoader)

Method Detail

setCustomLoader

public void setCustomLoader()
Set the custom loader

getCustomLoader

public java.lang.ClassLoader getCustomLoader()
Returns:
the custom class loader associated with this switcher

isCustomLoaderSet

public boolean isCustomLoaderSet()
Returns:
true if the custom classloader is set

restoreContextLoader

public void restoreContextLoader()
Restore the context loader

Skip navigation links

Oracle® Fusion Middleware Content Integration Suite (CIS) Java API Reference
11g Release 1 (11.1)

E17350-01


Copyright © 1996, 2010, Oracle and/or its affiliates. All rights reserved.