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.spice.xmlpolicy.builder;
9
10 import java.net.URL;
11 import java.security.Policy;
12 import java.util.Map;
13 import org.codehaus.spice.xmlpolicy.runtime.DefaultPolicy;
14
15 /***
16 *
17 * @author Peter Donald
18 * @version $Revision: 1.1 $ $Date: 2003/12/02 09:16:07 $
19 */
20 class TestResolver
21 implements PolicyResolver
22 {
23 public URL resolveLocation( String location )
24 throws Exception
25 {
26 return new URL( location );
27 }
28
29 public Policy createPolicy( Map grants )
30 throws Exception
31 {
32 return new DefaultPolicy( grants );
33 }
34 }
This page was automatically generated by Maven