2
2
3
3
/*
4
4
5
- Copyright 2002 (C) The Werken Company. All Rights Reserved.
6
-
7
- Redistribution and use of this software and associated documentation
8
- ("Software"), with or without modification, are permitted provided
9
- that the following conditions are met:
10
-
11
- 1. Redistributions of source code must retain copyright
12
- statements and notices. Redistributions must also contain a
13
- copy of this document.
14
-
15
- 2. Redistributions in binary form must reproduce the
16
- above copyright notice, this list of conditions and the
17
- following disclaimer in the documentation and/or other
18
- materials provided with the distribution.
19
-
20
- 3. The name "classworlds" must not be used to endorse or promote
21
- products derived from this Software without prior written
22
- permission of The Werken Company. For written permission,
23
-
24
-
25
- 4. Products derived from this Software may not be called "classworlds"
26
- nor may "classworlds" appear in their names without prior written
27
- permission of The Werken Company. "classworlds" is a registered
28
- trademark of The Werken Company.
29
-
30
- 5. Due credit should be given to The Werken Company.
31
- (http://classworlds.werken.com/).
32
-
33
- THIS SOFTWARE IS PROVIDED BY THE WERKEN COMPANY AND CONTRIBUTORS
34
- ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT
35
- NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
36
- FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
37
- THE WERKEN COMPANY OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
38
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
39
- (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
40
- SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
41
- HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
42
- STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
43
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
44
- OF THE POSSIBILITY OF SUCH DAMAGE.
45
-
46
- */
5
+ Copyright 2002 (C) The Werken Company. All Rights Reserved.
6
+
7
+ Redistribution and use of this software and associated documentation
8
+ ("Software"), with or without modification, are permitted provided
9
+ that the following conditions are met:
10
+
11
+ 1. Redistributions of source code must retain copyright
12
+ statements and notices. Redistributions must also contain a
13
+ copy of this document.
14
+
15
+ 2. Redistributions in binary form must reproduce the
16
+ above copyright notice, this list of conditions and the
17
+ following disclaimer in the documentation and/or other
18
+ materials provided with the distribution.
19
+
20
+ 3. The name "classworlds" must not be used to endorse or promote
21
+ products derived from this Software without prior written
22
+ permission of The Werken Company. For written permission,
23
+
24
+
25
+ 4. Products derived from this Software may not be called "classworlds"
26
+ nor may "classworlds" appear in their names without prior written
27
+ permission of The Werken Company. "classworlds" is a registered
28
+ trademark of The Werken Company.
29
+
30
+ 5. Due credit should be given to The Werken Company.
31
+ (http://classworlds.werken.com/).
32
+
33
+ THIS SOFTWARE IS PROVIDED BY THE WERKEN COMPANY AND CONTRIBUTORS
34
+ ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT
35
+ NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
36
+ FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
37
+ THE WERKEN COMPANY OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
38
+ INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
39
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
40
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
41
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
42
+ STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
43
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
44
+ OF THE POSSIBILITY OF SUCH DAMAGE.
45
+
46
+ */
47
47
48
48
import java .io .IOException ;
49
49
import java .io .InputStream ;
@@ -52,7 +52,7 @@ STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
52
52
53
53
/**
54
54
* <p>Autonomous sub-portion of a <code>ClassWorld</code>.</p>
55
- *
55
+ *
56
56
* <p>This class most closed maps to the <code>ClassLoader</code>
57
57
* role from Java and in facts can provide a <code>ClassLoader</code>
58
58
* view of itself using {@link #getClassLoader}.</p>
@@ -61,23 +61,20 @@ STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
61
61
* @author <a href="mailto:[email protected] ">Jason van Zyl</a>
62
62
*/
63
63
@ Deprecated
64
- public interface ClassRealm
65
- {
64
+ public interface ClassRealm {
66
65
String getId ();
67
66
68
67
ClassWorld getWorld ();
69
68
70
- void importFrom ( String realmId , String pkgName )
71
- throws NoSuchRealmException ;
69
+ void importFrom (String realmId , String pkgName ) throws NoSuchRealmException ;
72
70
73
- void addConstituent ( URL constituent );
71
+ void addConstituent (URL constituent );
74
72
75
- ClassRealm locateSourceRealm ( String className );
73
+ ClassRealm locateSourceRealm (String className );
76
74
77
- void setParent ( ClassRealm classRealm );
75
+ void setParent (ClassRealm classRealm );
78
76
79
- ClassRealm createChildRealm ( String id )
80
- throws DuplicateRealmException ;
77
+ ClassRealm createChildRealm (String id ) throws DuplicateRealmException ;
81
78
82
79
ClassLoader getClassLoader ();
83
80
@@ -89,20 +86,17 @@ ClassRealm createChildRealm( String id )
89
86
// Classloading
90
87
// ----------------------------------------------------------------------
91
88
92
- Class loadClass ( String name )
93
- throws ClassNotFoundException ;
89
+ Class loadClass (String name ) throws ClassNotFoundException ;
94
90
95
91
// ----------------------------------------------------------------------
96
92
// Resource handling
97
93
// ----------------------------------------------------------------------
98
94
99
- URL getResource ( String name );
95
+ URL getResource (String name );
100
96
101
- Enumeration findResources ( String name )
102
- throws IOException ;
97
+ Enumeration findResources (String name ) throws IOException ;
103
98
104
- InputStream getResourceAsStream ( String name );
99
+ InputStream getResourceAsStream (String name );
105
100
106
101
void display ();
107
102
}
108
-
0 commit comments