KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > mx > loading > UnifiedLoaderRepositoryDCLMBean


1 package org.jboss.mx.loading;
2
3 import java.net.URL JavaDoc;
4 import java.util.Set JavaDoc;
5
6 import org.jboss.classloading.spi.DomainClassLoader;
7 import org.jboss.classloading.spi.Translator;
8
9 public interface UnifiedLoaderRepositoryDCLMBean
10 {
11    public DomainClassLoader newClassLoader(final URL JavaDoc url, boolean addToRepository)
12    throws Exception JavaDoc;
13    public DomainClassLoader newClassLoader(final URL JavaDoc url, final URL JavaDoc origURL, boolean addToRepository)
14       throws Exception JavaDoc;
15    
16    public void removeClassLoader(DomainClassLoader cl);
17    
18    public LoaderRepositoryDomain registerClassLoader(DomainClassLoader ucl);
19    
20    public LoaderRepositoryDomain getInstance();
21    
22    public URL JavaDoc[] getURLs();
23    
24    // Aspect stuff
25
public Translator getTranslator();
26    public void setTranslator(Translator t);
27
28    /** Called by LoadMgr to obtain all class loaders for the given className
29     *@return LinkedList<UnifiedClassLoader3>, may be null
30     */

31    public Set JavaDoc getPackageClassLoaders(String JavaDoc className);
32
33    /** A utility method that iterates over all repository class loader and
34     * display the class information for every UCL that contains the given
35     * className
36     */

37    public String JavaDoc displayClassInfo(String JavaDoc className);
38
39    /** Get the number of classes loaded into the ULR cache.
40     * @return the classes cache size.
41     */

42    public int getCacheSize();
43    /** Get the number of UnifiedClassLoader3s (UCLs) in the ULR
44     * @return the number of UCLs in the ULR
45     */

46    public int getClassLoadersSize();
47    /** Flush the ULR classes cache
48     */

49    public void flush();
50 }
51
Popular Tags