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: */
17: package org.apache.jetspeed.tools.pamanager;
18:
19: import org.apache.jetspeed.components.portletregistry.RegistryException;
20: import org.apache.jetspeed.util.FileSystemHelper;
21:
22: /**
23: * PortletApplicationManagement
24: *
25: * @author <a href="mailto:ate@douma.nu">Ate Douma</a>
26: * @version $Id: PortletApplicationManagement.java 593180 2007-11-08 15:00:35Z weaver $
27: */
28: public interface PortletApplicationManagement {
29: public static final String LOCAL_PA_PREFIX = "jetspeed-";
30:
31: public boolean isStarted();
32:
33: /**
34: * Allows deployment to override the default of using the <code>contextName</code> as the
35: * context path.
36: *
37: * @param contextName
38: * @param contextPath
39: * @param warStruct
40: * @param paClassLoader
41: * @throws RegistryException
42: */
43: void startPortletApplication(String contextName,
44: String contextPath, FileSystemHelper warStruct,
45: ClassLoader paClassLoader) throws RegistryException;
46:
47: void startPortletApplication(String contextName,
48: FileSystemHelper warStruct, ClassLoader paClassLoader)
49: throws RegistryException;
50:
51: void stopPortletApplication(String contextName)
52: throws RegistryException;
53:
54: void startLocalPortletApplication(String contextName,
55: FileSystemHelper warStruct, ClassLoader paClassLoader)
56: throws RegistryException;
57:
58: void startInternalApplication(String contextName)
59: throws RegistryException;
60:
61: void stopLocalPortletApplication(String contextName)
62: throws RegistryException;
63:
64: public void unregisterPortletApplication(String paName)
65: throws RegistryException;
66: }
|