KickJava   Java API By Example, From Geeks To Geeks.

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


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 import org.codehaus.loom.extension.Extension;
11
12 /**
13  * This class defines a specific classloader, made up of entrys, Extension and
14  * FileSetMetaData objects.
15  *
16  * @author Peter Donald
17  * @version $Revision: 1.1 $ $Date: 2004/04/19 22:19:25 $
18  */

19 public class ClassLoaderMetaData
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 name of the parent classloader. */
28     private final String JavaDoc m_parent;
29
30     /** The Entrys that are added to this ClassLoader. */
31     private final String JavaDoc[] m_entrys;
32
33     /** The Entrys that are required by this ClassLoader. */
34     private final Extension[] m_extensions;
35
36     /** The Filesets that are added to this ClassLoader. */
37     private final FileSetMetaData[] m_filesets;
38
39     public ClassLoaderMetaData( final String JavaDoc name,
40                                 final String JavaDoc parent,
41                                 final String JavaDoc[] entrys,
42                                 final Extension[] extensions,
43                                 final FileSetMetaData[] filesets )
44     {
45         m_name = name;
46         m_parent = parent;
47         m_entrys = entrys;
48         m_extensions = extensions;
49         m_filesets = filesets;
50     }
51
52     /**
53      * Return the name of Classloader.
54      *
55      * @return the name of Classloader.
56      */

57     public String JavaDoc getName()
58     {
59         return m_name;
60     }
61
62     /**
63      * Return the name of parent Classloader.
64      *
65      * @return the name of parent Classloader.
66      */

67     public String JavaDoc getParent()
68     {
69         return m_parent;
70     }
71
72     /**
73      * Return the elements added to Classloader.
74      *
75      * @return the elements added to Classloader.
76      */

77     public String JavaDoc[] getEntrys()
78     {
79         return m_entrys;
80     }
81
82     /**
83      * Return the extensions added to Classloader.
84      *
85      * @return the extensions added to Classloader.
86      */

87     public Extension[] getExtensions()
88     {
89         return m_extensions;
90     }
91
92     /**
93      * Return the filesets added to Classloader.
94      *
95      * @return the filesets added to Classloader.
96      */

97     public FileSetMetaData[] getFilesets()
98     {
99         return m_filesets;
100     }
101 }
102
Popular Tags