openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gerdo...@apache.org
Subject svn commit: r768605 - /incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/plugins/AbstractOpenWebBeansPlugin.java
Date Sat, 25 Apr 2009 21:27:46 GMT
Author: gerdogdu
Date: Sat Apr 25 21:27:46 2009
New Revision: 768605

URL: http://svn.apache.org/viewvc?rev=768605&view=rev
Log:
Adding abstract plugin implementation to ease interface implementation.

Added:
    incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/plugins/AbstractOpenWebBeansPlugin.java
  (with props)

Added: incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/plugins/AbstractOpenWebBeansPlugin.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/plugins/AbstractOpenWebBeansPlugin.java?rev=768605&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/plugins/AbstractOpenWebBeansPlugin.java
(added)
+++ incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/plugins/AbstractOpenWebBeansPlugin.java
Sat Apr 25 21:27:46 2009
@@ -0,0 +1,97 @@
+/*
+ *  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.webbeans.plugins;
+
+import java.lang.annotation.Annotation;
+import java.lang.reflect.Type;
+
+import org.apache.webbeans.exception.WebBeansConfigurationException;
+
+/**
+ * Abstract imlpementation of the {@link OpenWebBeansPlugin} interface
+ * contract.
+ * 
+ *  <p>
+ *  This abstraction provides the empty implementation for the interface. If any
+ *  subclass of this class wants to define customize method, it has to override related
+ *  method definition.
+ *  </p>
+ */
+public abstract class AbstractOpenWebBeansPlugin implements OpenWebBeansPlugin
+{
+    protected AbstractOpenWebBeansPlugin()
+    {
+        
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.webbeans.plugins.OpenWebBeansPlugin#checkForValidResources(java.lang.reflect.Type,
java.lang.Class, java.lang.String, java.lang.annotation.Annotation[])
+     */
+    public void checkForValidResources(Type type, Class<?> clazz, String name, Annotation[]
annotations)
+    {
+        
+        
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.webbeans.plugins.OpenWebBeansPlugin#injectResource(java.lang.reflect.Type,
java.lang.annotation.Annotation[])
+     */
+    public Object injectResource(Type type, Annotation[] annotations)
+    {
+        
+        return null;
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.webbeans.plugins.OpenWebBeansPlugin#isResourceAnnotation(java.lang.Class)
+     */
+    public boolean isResourceAnnotation(Class<? extends Annotation> annotationClass)
+    {
+        
+        return false;
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.webbeans.plugins.OpenWebBeansPlugin#isSimpleBeanClass(java.lang.Class)
+     */
+    public void isSimpleBeanClass(Class<?> clazz) throws WebBeansConfigurationException
+    {
+        
+        
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.webbeans.plugins.OpenWebBeansPlugin#shutDown()
+     */
+    public void shutDown() throws WebBeansConfigurationException
+    {
+        
+        
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.webbeans.plugins.OpenWebBeansPlugin#startUp()
+     */
+    public void startUp() throws WebBeansConfigurationException
+    {
+        
+        
+    }
+    
+    
+
+}

Propchange: incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/plugins/AbstractOpenWebBeansPlugin.java
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message