Home » geronimo-2.2-source-release » org.apache.geronimo.openejb » [javadoc | source]

    1   /**
    2    * Licensed to the Apache Software Foundation (ASF) under one or more
    3    * contributor license agreements.  See the NOTICE file distributed with
    4    * this work for additional information regarding copyright ownership.
    5    * The ASF licenses this file to You under the Apache License, Version 2.0
    6    * (the "License"); you may not use this file except in compliance with
    7    * the License.  You may obtain a copy of the License at
    8    *
    9    *     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.geronimo.openejb;
   18   
   19   import java.io.IOException;
   20   import java.util.Properties;
   21   import javax.ejb.spi.HandleDelegate;
   22   import javax.naming.NamingException;
   23   import javax.security.auth.Subject;
   24   import javax.security.auth.login.LoginException;
   25   
   26   import org.apache.openejb.Container;
   27   import org.apache.openejb.DeploymentInfo;
   28   import org.apache.openejb.OpenEJBException;
   29   import org.apache.openejb.UndeployException;
   30   import org.apache.openejb.NoSuchApplicationException;
   31   import org.apache.openejb.config.ClientModule;
   32   import org.apache.openejb.config.EjbModule;
   33   import org.apache.openejb.config.AppModule;
   34   import org.apache.openejb.assembler.classic.ClientInfo;
   35   import org.apache.openejb.assembler.classic.EjbJarInfo;
   36   import org.apache.openejb.assembler.classic.ContainerInfo;
   37   import org.apache.openejb.assembler.classic.AppInfo;
   38   import org.apache.openejb.spi.ContainerSystem;
   39   
   40   import org.omg.CORBA.ORB;
   41   
   42   /**
   43    * @version $Rev: 708815 $ $Date: 2008-10-29 01:01:59 -0700 (Wed, 29 Oct 2008) $
   44    */
   45   public interface OpenEjbSystem {
   46       ContainerSystem getContainerSystem();
   47   
   48       Container createContainer(Class<? extends ContainerInfo> type, String serviceId, Properties declaredProperties, String providerId) throws OpenEJBException;
   49   
   50       ClientInfo configureApplication(ClientModule clientModule) throws OpenEJBException;
   51   
   52       EjbJarInfo configureApplication(EjbModule ejbModule) throws OpenEJBException;
   53   
   54       void createClient(ClientInfo clientInfo, ClassLoader classLoader) throws NamingException, IOException, OpenEJBException;
   55   
   56       void createEjbJar(EjbJarInfo ejbJarInfo, ClassLoader classLoader) throws NamingException, IOException, OpenEJBException;
   57   
   58       DeploymentInfo getDeploymentInfo(String deploymentId);
   59   
   60       void removeEjbJar(EjbJarInfo ejbJarInfo, ClassLoader classLoader) throws UndeployException, NoSuchApplicationException;
   61   
   62       AppInfo configureApplication(AppModule appModule) throws OpenEJBException;
   63   
   64       void setORBContext(ORB orb, HandleDelegate handleDelegate);
   65       
   66       void setProperties(Properties properties);
   67       
   68       Properties getProperties();
   69   }

Home » geronimo-2.2-source-release » org.apache.geronimo.openejb » [javadoc | source]