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.openejb;
17:
18: import java.io.IOException;
19: import java.util.Properties;
20: import javax.ejb.spi.HandleDelegate;
21: import javax.naming.NamingException;
22: import javax.security.auth.Subject;
23: import javax.security.auth.login.LoginException;
24:
25: import org.apache.openejb.Container;
26: import org.apache.openejb.DeploymentInfo;
27: import org.apache.openejb.OpenEJBException;
28: import org.apache.openejb.UndeployException;
29: import org.apache.openejb.NoSuchApplicationException;
30: import org.apache.openejb.config.ClientModule;
31: import org.apache.openejb.config.EjbModule;
32: import org.apache.openejb.config.AppModule;
33: import org.apache.openejb.assembler.classic.ClientInfo;
34: import org.apache.openejb.assembler.classic.EjbJarInfo;
35: import org.apache.openejb.assembler.classic.ContainerInfo;
36: import org.apache.openejb.assembler.classic.AppInfo;
37: import org.apache.openejb.spi.ContainerSystem;
38:
39: import org.omg.CORBA.ORB;
40:
41: /**
42: * @version $Rev: 583409 $ $Date: 2007-10-10 02:38:51 -0700 (Wed, 10 Oct 2007) $
43: */
44: public interface OpenEjbSystem {
45: ContainerSystem getContainerSystem();
46:
47: Container createContainer(Class<? extends ContainerInfo> type,
48: String serviceId, Properties declaredProperties,
49: String providerId) throws OpenEJBException;
50:
51: ClientInfo configureApplication(ClientModule clientModule)
52: throws OpenEJBException;
53:
54: EjbJarInfo configureApplication(EjbModule ejbModule)
55: throws OpenEJBException;
56:
57: void createClient(ClientInfo clientInfo, ClassLoader classLoader)
58: throws NamingException, IOException, OpenEJBException;
59:
60: void createEjbJar(EjbJarInfo ejbJarInfo, ClassLoader classLoader)
61: throws NamingException, IOException, OpenEJBException;
62:
63: DeploymentInfo getDeploymentInfo(String deploymentId);
64:
65: void removeEjbJar(EjbJarInfo ejbJarInfo, ClassLoader classLoader)
66: throws UndeployException, NoSuchApplicationException;
67:
68: AppInfo configureApplication(AppModule appModule)
69: throws OpenEJBException;
70:
71: void setORBContext(ORB orb, HandleDelegate handleDelegate);
72: }
|