KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > codehaus > loom > classman > metadata > JoinMetaData


1 /*
2  * Copyright (C) The Spice Group. All rights reserved.
3  *
4  * This software is published under the terms of the Spice
5  * Software License version 1.1, a copy of which has been included
6  * with this distribution in the LICENSE.txt file.
7  */

8 package org.codehaus.loom.classman.metadata;
9
10 /**
11  * This class defines a classloader that "merges" multiple classloaders. For
12  * this to be successful, it is required that the ClassLoaders contain disjoint
13  * sets of classes (with the exception of classes loaded from the system
14  * classpath).
15  *
16  * @author Peter Donald
17  * @version $Revision: 1.1 $ $Date: 2004/04/19 22:19:25 $
18  */

19 public class JoinMetaData
20 {
21     /**
22      * The name of the current classloader. This may be used by other
23      * ClassLoader definitions to refer to this ClassLoader.
24      */

25     private final String JavaDoc m_name;
26
27     /** The list of classloaders that are merged in this classloader. */
28     private final String JavaDoc[] m_classloaders;
29
30     /**
31      * The definition for set of classloaders
32      */

33     public JoinMetaData( final String JavaDoc name,
34                          final String JavaDoc[] classloaders )
35     {
36         m_name = name;
37         m_classloaders = classloaders;
38     }
39
40     /**
41      * Return the name of Classloader.
42      *
43      * @return the name of Classloader.
44      */

45     public String JavaDoc getName()
46     {
47         return m_name;
48     }
49
50     /**
51      * Return the list of classloaders that are merged in this classloader
52      *
53      * @return the list of classloaders that are merged in this classloader
54      */

55     public String JavaDoc[] getClassloaders()
56     {
57         return m_classloaders;
58     }
59 }
60
Popular Tags