blob: addcb5547e82ed2b41c565857f640ae7a75b1718 [file] [log] [blame]
Richard S. Hallb3951672006-09-19 17:04:53 +00001/*
2 * Licensed to the Apache Software Foundation (ASF) under one
3 * or more contributor license agreements. See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership. The ASF licenses this file
6 * to you under the Apache License, Version 2.0 (the
7 * "License"); you may not use this file except in compliance
8 * with the License. You may obtain a copy of the License at
Richard S. Hall930fecc2005-08-16 18:33:34 +00009 *
Richard S. Hallb3951672006-09-19 17:04:53 +000010 * http://www.apache.org/licenses/LICENSE-2.0
Richard S. Hall930fecc2005-08-16 18:33:34 +000011 *
Richard S. Hallb3951672006-09-19 17:04:53 +000012 * Unless required by applicable law or agreed to in writing,
13 * software distributed under the License is distributed on an
14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 * KIND, either express or implied. See the License for the
16 * specific language governing permissions and limitations
17 * under the License.
Richard S. Hall930fecc2005-08-16 18:33:34 +000018 */
Richard S. Hall5a031592005-08-19 19:53:58 +000019package org.apache.felix.moduleloader;
Richard S. Hall930fecc2005-08-16 18:33:34 +000020
Richard S. Hall29a4fbc2006-02-03 12:54:52 +000021import java.net.URL;
Richard S. Hall930fecc2005-08-16 18:33:34 +000022
Richard S. Hall29a4fbc2006-02-03 12:54:52 +000023public interface IURLPolicy
Richard S. Hall930fecc2005-08-16 18:33:34 +000024{
Richard S. Hall8a3f4002007-06-05 15:19:52 +000025 // TODO: ML - For expediency, the port argument was added to this method
26 // but it is not clear that it makes sense in the long run. This needs to
27 // be readdressed in the future, perhaps by the spec to clearly indicate
28 // how resources on the bundle class path are searched, which is why we
29 // need the port number in the first place -- to differentiate among
30 // resources with the same name on the bundle class path. This was previously
31 // handled as part of the resource path, but that approach is not spec
32 // compliant.
33 public URL createURL(int port, String path);
Richard S. Hall29a4fbc2006-02-03 12:54:52 +000034}