railo.commons.lang
Class PCLCollection

java.lang.Object
  extended by railo.commons.lang.PCLCollection

public final class PCLCollection
extends Object

Directory ClassLoader


Constructor Summary
PCLCollection(MappingImpl mapping, Resource directory, ClassLoader parent, int maxBlockSize)
          Constructor of the class
 
Method Summary
 long count()
           
 Class<?> getClass(PageSourceImpl ps)
           
 InputStream getResourceAsStream(String name)
           
 Class<?> loadClass(String name, byte[] barr, boolean isCFC)
           
 int shrink(boolean force)
          shrink the classloader elements
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PCLCollection

public PCLCollection(MappingImpl mapping,
                     Resource directory,
                     ClassLoader parent,
                     int maxBlockSize)
              throws IOException
Constructor of the class

Parameters:
directory -
parent -
Throws:
IOException
Method Detail

loadClass

public Class<?> loadClass(String name,
                          byte[] barr,
                          boolean isCFC)
                   throws ClassNotFoundException
Throws:
ClassNotFoundException

getClass

public Class<?> getClass(PageSourceImpl ps)
                  throws ClassNotFoundException
Throws:
ClassNotFoundException

getResourceAsStream

public InputStream getResourceAsStream(String name)

count

public long count()

shrink

public int shrink(boolean force)
shrink the classloader elements

Returns:
how many page have removed from classloaders


Copyright © 2012 Railo