KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > avalon > phoenix > components > classloader > PolicyEntry


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

8 package org.apache.avalon.phoenix.components.classloader;
9
10 import java.security.CodeSource JavaDoc;
11 import java.security.Permissions JavaDoc;
12
13 /**
14  * Internal Policy Entry holder class.
15  */

16 final class PolicyEntry
17 {
18     private final CodeSource JavaDoc m_codeSource;
19
20     private final Permissions JavaDoc m_permissions;
21
22     public PolicyEntry( final CodeSource JavaDoc codeSource,
23                         final Permissions JavaDoc permissions )
24     {
25         m_codeSource = codeSource;
26         m_permissions = permissions;
27     }
28
29     public CodeSource JavaDoc getCodeSource()
30     {
31         return m_codeSource;
32     }
33
34     public Permissions JavaDoc getPermissions()
35     {
36         return m_permissions;
37     }
38 }
39
Popular Tags