Save This Page
Home » apache-openwebbeans-1.0.0-incubating-M3-sources » org.apache.webbeans.component » [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.component;
   15   
   16   import javax.enterprise.inject.Produces;
   17   
   18   /**
   19    * There are different <i>Web Beans Component</i> with regard to the definition.
   20    * These are the;
   21    * <ul>
   22    * <li>Bean Implementation Class Components</li>
   23    * <li>Producer Method Components</li>
   24    * </ul>
   25    * <p>
   26    * Bean Implementation Class Components are defined with annotating the ordinary
   27    * classes with {@link BaseBean} annotation. It maybe defined within the
   28    * web-beans.xml file using &lt;class&gt; element. It is possible to mix these
   29    * two definitions.
   30    * </p>
   31    * <p>
   32    * Producer Method Components are defined within the class that is annotated
   33    * with {@link BaseBean} annotation. In these classes, there are methods that
   34    * are annotated with {@link Produces} annotation. These methods become the
   35    * producer method components of this web beans component. It maybe defined
   36    * using the web-beans.xml file using the &lt;producer&gt; element. It is
   37    * possible to mix these two definitons.
   38    * </p>
   39    * <p>
   40    * For further details about the components, see Web Beans Specification
   41    * Chapter-2.
   42    * </p>
   43    * 
   44    * @version $Rev: 806706 $ $Date: 2009-08-21 23:32:15 +0300 (Fri, 21 Aug 2009) $
   45    */
   46   public enum WebBeansType
   47   {
   48       MANAGED, 
   49       PRODUCERMETHOD, 
   50       PRODUCERFIELD,
   51       RESOURCEBEAN,
   52       NEW, 
   53       ENTERPRISE, 
   54       JMS, 
   55       DEPENDENT, 
   56       INTERCEPTOR, 
   57       DECORATOR, 
   58       OBSERVABLE, 
   59       MANAGER, 
   60       CONVERSATION,
   61       INSTANCE,
   62       INJECTIONPOINT,
   63       THIRDPARTY,
   64       EXTENSION
   65   }

Save This Page
Home » apache-openwebbeans-1.0.0-incubating-M3-sources » org.apache.webbeans.component » [javadoc | source]