01: /**
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */package org.apache.geronimo.deployment;
17:
18: import java.io.File;
19: import java.io.IOException;
20: import java.net.URI;
21: import java.net.URL;
22: import java.util.jar.JarFile;
23: import java.util.zip.ZipEntry;
24: import java.util.zip.ZipFile;
25:
26: interface ResourceContext {
27: void addIncludeAsPackedJar(URI targetPath, JarFile jarFile)
28: throws IOException;
29:
30: void addInclude(URI targetPath, ZipFile zipFile, ZipEntry zipEntry)
31: throws IOException;
32:
33: void addInclude(URI targetPath, URL source) throws IOException;
34:
35: void addInclude(URI targetPath, File source) throws IOException;
36:
37: void addFile(URI targetPath, ZipFile zipFile, ZipEntry zipEntry)
38: throws IOException;
39:
40: void addFile(URI targetPath, URL source) throws IOException;
41:
42: void addFile(URI targetPath, File source) throws IOException;
43:
44: void addFile(URI targetPath, String source) throws IOException;
45:
46: File getTargetFile(URI targetPath);
47:
48: void flush() throws IOException;
49: }
|