Home » apache-openwebbeans-1.0.0-incubating-M3-sources » org.apache.webbeans.plugins » [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 this
    4    * work for additional information regarding copyright ownership. The ASF
    5    * licenses this file to You under the Apache License, Version 2.0 (the
    6    * "License"); you may not use this file except in compliance with the License.
    7    * You may obtain a copy of the License at
    8    * http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law
    9    * or agreed to in writing, software distributed under the License is
   10    * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
   11    * KIND, either express or implied. See the License for the specific language
   12    * governing permissions and limitations under the License.
   13    */
   14   package org.apache.webbeans.plugins;
   15   
   16   import javax.enterprise.inject.spi.Bean;
   17   
   18   /**
   19    * Session bean related plugin contract.
   20    * 
   21    * @version $Rev$ $Date$
   22    */
   23   public interface OpenWebBeansEjbPlugin extends OpenWebBeansPlugin
   24   {
   25       /**
   26        * Returns true if class is an session bean class false otherwise
   27        * 
   28        * @param clazz class definition
   29        * @return true if class is an ejb class false otherwise
   30        */
   31       public boolean isSessionBean(Class<?> clazz);
   32   
   33       /**
   34        * Configures session bean and adds it into the container.
   35        * 
   36        * @param clazz session bean class
   37        */
   38       public <T> Bean<T> defineSessionBean(Class<T> clazz);
   39   
   40       /**
   41        * Returns true if given class is singleton session bean, false otherwise.
   42        * 
   43        * @param clazz session bean class
   44        * @return true if given class is singleton session bean, false otherwise
   45        */
   46       public boolean isSingletonBean(Class<?> clazz);
   47   
   48       /**
   49        * Returns true if given class is stateless session bean, false otherwise.
   50        * 
   51        * @param clazz session bean class
   52        * @return true if given class is singleton session bean, false otherwise
   53        */    
   54       public boolean isStatelessBean(Class<?> clazz);
   55   
   56       /**
   57        * Returns true if given class is stateful session bean, false otherwise.
   58        * 
   59        * @param clazz session bean class
   60        * @return true if given class is singleton session bean, false otherwise
   61        */    
   62       public boolean isStatefulBean(Class<?> clazz);
   63   
   64       /**
   65        * Returns session bean proxy.
   66        * 
   67        * @param bean session bean
   68        * @param proxy interface
   69        * @return session bean proxy
   70        */
   71       public Object getSessionBeanProxy(Bean<?> bean, Class<?> iface);
   72   }

Home » apache-openwebbeans-1.0.0-incubating-M3-sources » org.apache.webbeans.plugins » [javadoc | source]