Methods Summary |
---|
public static java.lang.ClassLoader[] | getClassLoaders(org.apache.catalina.Container container)
Loader loader = null;
ClassLoader classLoader = null;
if (container != null) loader = container.getLoader();
if (loader != null) classLoader = loader.getClassLoader();
else classLoader = Thread.currentThread().getContextClassLoader();
if ( classLoader == Thread.currentThread().getContextClassLoader() ) {
return new ClassLoader[] {classLoader};
} else {
return new ClassLoader[] {classLoader,Thread.currentThread().getContextClassLoader()};
}
|
public java.lang.ClassLoader[] | getClassLoaders()
return getClassLoaders(container);
|
public org.apache.catalina.tribes.io.ReplicationStream | getReplicationStream(byte[] data)Open Stream and use correct ClassLoader (Container) Switch
ThreadClassLoader
return getReplicationStream(data,0,data.length);
|
public org.apache.catalina.tribes.io.ReplicationStream | getReplicationStream(byte[] data, int offset, int length)
ByteArrayInputStream fis = new ByteArrayInputStream(data, offset, length);
return new ReplicationStream(fis, getClassLoaders());
|