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
    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.webbeans.plugins;
   18   
   19   import java.lang.annotation.Annotation;
   20   import java.lang.reflect.Type;
   21   
   22   import org.apache.webbeans.exception.WebBeansConfigurationException;
   23   
   24   /**
   25    * Abstract imlpementation of the {@link OpenWebBeansPlugin} interface
   26    * contract.
   27    * 
   28    *  <p>
   29    *  This abstraction provides the empty implementation for the interface. If any
   30    *  subclass of this class wants to define customize method, it has to override related
   31    *  method definition.
   32    *  </p>
   33    */
   34   public abstract class AbstractOpenWebBeansPlugin implements OpenWebBeansPlugin
   35   {
   36       protected AbstractOpenWebBeansPlugin()
   37       {
   38           
   39       }
   40   
   41       /* (non-Javadoc)
   42        * @see org.apache.webbeans.plugins.OpenWebBeansPlugin#checkForValidResources(java.lang.reflect.Type, java.lang.Class, java.lang.String, java.lang.annotation.Annotation[])
   43        */
   44       public void checkForValidResources(Type type, Class<?> clazz, String name, Annotation[] annotations)
   45       {
   46           
   47           
   48       }
   49   
   50       /* (non-Javadoc)
   51        * @see org.apache.webbeans.plugins.OpenWebBeansPlugin#injectResource(java.lang.reflect.Type, java.lang.annotation.Annotation[])
   52        */
   53       public Object injectResource(Type type, Annotation[] annotations)
   54       {
   55           
   56           return null;
   57       }
   58   
   59       /* (non-Javadoc)
   60        * @see org.apache.webbeans.plugins.OpenWebBeansPlugin#isResourceAnnotation(java.lang.Class)
   61        */
   62       public boolean isResourceAnnotation(Class<? extends Annotation> annotationClass)
   63       {
   64           
   65           return false;
   66       }
   67   
   68       /* (non-Javadoc)
   69        * @see org.apache.webbeans.plugins.OpenWebBeansPlugin#isSimpleBeanClass(java.lang.Class)
   70        */
   71       public void isManagedBean(Class<?> clazz) throws WebBeansConfigurationException
   72       {
   73           
   74           
   75       }
   76   
   77       /* (non-Javadoc)
   78        * @see org.apache.webbeans.plugins.OpenWebBeansPlugin#shutDown()
   79        */
   80       public void shutDown() throws WebBeansConfigurationException
   81       {
   82           
   83           
   84       }
   85   
   86       /* (non-Javadoc)
   87        * @see org.apache.webbeans.plugins.OpenWebBeansPlugin#startUp()
   88        */
   89       public void startUp() throws WebBeansConfigurationException
   90       {
   91           
   92           
   93       }
   94   
   95   }

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