
org.apache.geronimo.openejb.OpenEjbSystem Maven / Gradle / Ivy
The newest version!
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.geronimo.openejb;
import java.io.IOException;
import java.util.Properties;
import javax.ejb.spi.HandleDelegate;
import javax.naming.NamingException;
import org.apache.openejb.AppContext;
import org.apache.openejb.BeanContext;
import org.apache.openejb.Container;
import org.apache.openejb.OpenEJBException;
import org.apache.openejb.UndeployException;
import org.apache.openejb.NoSuchApplicationException;
import org.apache.openejb.config.ClientModule;
import org.apache.openejb.config.EjbModule;
import org.apache.openejb.config.AppModule;
import org.apache.openejb.assembler.classic.ClientInfo;
import org.apache.openejb.assembler.classic.EjbJarInfo;
import org.apache.openejb.assembler.classic.ContainerInfo;
import org.apache.openejb.assembler.classic.AppInfo;
import org.apache.openejb.spi.ContainerSystem;
import org.omg.CORBA.ORB;
/**
* @version $Rev: 1145437 $ $Date: 2011-07-12 10:27:05 +0800 (Tue, 12 Jul 2011) $
*/
public interface OpenEjbSystem {
ContainerSystem getContainerSystem();
Container createContainer(Class extends ContainerInfo> type, String serviceId, Properties declaredProperties, String providerId) throws OpenEJBException;
ClientInfo configureApplication(ClientModule clientModule) throws OpenEJBException;
EjbJarInfo configureApplication(EjbModule ejbModule) throws OpenEJBException;
void createClient(ClientInfo clientInfo, ClassLoader classLoader) throws NamingException, IOException, OpenEJBException;
BeanContext getDeploymentInfo(String deploymentId);
AppContext createApplication(AppInfo appInfo, ClassLoader classLoader, boolean start) throws NamingException, IOException, OpenEJBException;
void removeApplication(AppInfo appInfo, ClassLoader classLoader) throws UndeployException, NoSuchApplicationException;
AppInfo configureApplication(AppModule appModule) throws OpenEJBException;
void setORBContext(ORB orb, HandleDelegate handleDelegate);
void setProperties(Properties properties);
Properties getProperties();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy