01: /*
02: * $Id: org.eclipse.jdt.ui.prefs 5004 2006-03-17 20:47:08 -0800 (Fri, 17 Mar
03: * 2006) eelco12 $ $Revision: 5004 $ $Date: 2006-03-17 20:47:08 -0800 (Fri, 17
04: * Mar 2006) $
05: *
06: * ==============================================================================
07: * Licensed under the Apache License, Version 2.0 (the "License"); you may not
08: * use this file except in compliance with the License. You may obtain a copy of
09: * the License at
10: *
11: * http://www.apache.org/licenses/LICENSE-2.0
12: *
13: * Unless required by applicable law or agreed to in writing, software
14: * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
15: * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
16: * License for the specific language governing permissions and limitations under
17: * the License.
18: */
19: package wicket.markup.html;
20:
21: /**
22: * Guards lazily loaded {@link PackageResource package resources} against
23: * unwanted access.
24: *
25: * @author Eelco Hillenius
26: */
27: public interface IPackageResourceGuard {
28: /**
29: * Whether the package resource that can be reached using the provided
30: * parameters may be accessed.
31: *
32: * @param scope
33: * This argument will be used to get the class loader for loading
34: * the package resource, and to determine what package it is in
35: * @param path
36: * The path to the resource
37: *
38: * @param absolutePath
39: * @return True if access is permitted, false otherwise
40: */
41: boolean accept(final Class scope, final String path);
42: }
|