Author: pete.muir(a)jboss.org
Date: 2008-12-07 12:50:01 -0500 (Sun, 07 Dec 2008)
New Revision: 445
Added:
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/jsf/
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/jsf/JSF.java
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/servlet/Servlet.java
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/util/ApiAbstraction.java
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/nonBeans/
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/nonBeans/EnterpriseBeanWebBean.java
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/nonBeans/EntityBean.java
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/nonBeans/FilterBean.java
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/nonBeans/HttpSessionListenerBean.java
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/nonBeans/ServletBean.java
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/nonBeans/ServletContextListenerBean.java
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/nonBeans/ServletRequestListenerBean.java
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/nonBeans/UIComponentBean.java
Modified:
ri/trunk/webbeans-ri/pom.xml
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bootstrap/Bootstrap.java
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/ejb/EJB.java
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/util/Reflections.java
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/SimpleBeanLifecycleTest.java
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/SimpleBeanModelTest.java
Log:
Update to latest spec, better restrictions on what can be simple web beans
Modified: ri/trunk/webbeans-ri/pom.xml
===================================================================
--- ri/trunk/webbeans-ri/pom.xml 2008-12-07 17:46:04 UTC (rev 444)
+++ ri/trunk/webbeans-ri/pom.xml 2008-12-07 17:50:01 UTC (rev 445)
@@ -67,6 +67,11 @@
</dependency>
<dependency>
+ <groupId>javax.faces</groupId>
+ <artifactId>jsf-api</artifactId>
+ </dependency>
+
+ <dependency>
<groupId>com.google.collections</groupId>
<artifactId>google-collections</artifactId>
</dependency>
Modified: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bootstrap/Bootstrap.java
===================================================================
---
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bootstrap/Bootstrap.java 2008-12-07
17:46:04 UTC (rev 444)
+++
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bootstrap/Bootstrap.java 2008-12-07
17:50:01 UTC (rev 445)
@@ -17,6 +17,13 @@
package org.jboss.webbeans.bootstrap;
+import static org.jboss.webbeans.ejb.EJB.ENTERPRISE_BEAN_CLASS;
+import static org.jboss.webbeans.jsf.JSF.UICOMPONENT_CLASS;
+import static org.jboss.webbeans.servlet.Servlet.FILTER_CLASS;
+import static org.jboss.webbeans.servlet.Servlet.HTTP_SESSION_LISTENER_CLASS;
+import static org.jboss.webbeans.servlet.Servlet.SERVLET_CLASS;
+import static org.jboss.webbeans.servlet.Servlet.SERVLET_CONTEXT_LISTENER_CLASS;
+import static org.jboss.webbeans.servlet.Servlet.SERVLET_REQUEST_LISTENER_CLASS;
import static org.jboss.webbeans.util.BeanFactory.createEnterpriseBean;
import static org.jboss.webbeans.util.BeanFactory.createEventBean;
import static org.jboss.webbeans.util.BeanFactory.createObserver;
@@ -125,53 +132,56 @@
Set<AbstractBean<?, ?>> beans = new HashSet<AbstractBean<?,
?>>();
for (Class<?> clazz : classes)
{
- AbstractClassBean<?> bean;
if (MetaDataCache.instance().getEjbMetaData(clazz).isEjb())
{
- bean = createEnterpriseBean(clazz);
+ createBean(createEnterpriseBean(clazz), beans);
}
- else
+ else if (isTypeSimpleWebBean(clazz))
{
- bean = createSimpleBean(clazz);
+ createBean(createSimpleBean(clazz), beans);
}
- beans.add(bean);
-
CurrentManager.rootManager().getResolver().addInjectionPoints(bean.getInjectionPoints());
- for (AnnotatedMethod<Object> producerMethod : bean.getProducerMethods())
+ }
+ return beans;
+ }
+
+ public void createBean(AbstractClassBean<?> bean, Set<AbstractBean<?,
?>> beans)
+ {
+ beans.add(bean);
+
CurrentManager.rootManager().getResolver().addInjectionPoints(bean.getInjectionPoints());
+ for (AnnotatedMethod<Object> producerMethod : bean.getProducerMethods())
+ {
+ ProducerMethodBean<?> producerMethodBean =
createProducerMethodBean(producerMethod, bean);
+ beans.add(producerMethodBean);
+
CurrentManager.rootManager().getResolver().addInjectionPoints(producerMethodBean.getInjectionPoints());
+ log.info("Web Bean: " + producerMethodBean);
+ }
+ for (AnnotatedField<Object> producerField : bean.getProducerFields())
+ {
+ ProducerFieldBean<?> producerFieldBean =
createProducerFieldBean(producerField, bean);
+ beans.add(producerFieldBean);
+ log.info("Web Bean: " + producerFieldBean);
+ }
+ for (AnnotatedField<Object> eventField : bean.getEventFields())
+ {
+ EventBean<?> eventBean = createEventBean(eventField);
+ beans.add(eventBean);
+
CurrentManager.rootManager().getResolver().addInjectionPoints(eventBean.getInjectionPoints());
+ log.info("Web Bean: " + eventBean);
+ }
+ for (AnnotatedMethod<Object> observerMethod : bean.getObserverMethods())
+ {
+ ObserverImpl<?> observer = createObserver(observerMethod, bean);
+ if (observerMethod.getAnnotatedParameters(Observes.class).size() == 1)
{
- ProducerMethodBean<?> producerMethodBean =
createProducerMethodBean(producerMethod, bean);
- beans.add(producerMethodBean);
-
CurrentManager.rootManager().getResolver().addInjectionPoints(producerMethodBean.getInjectionPoints());
- log.info("Web Bean: " + producerMethodBean);
+ registerObserver(observer,
observerMethod.getAnnotatedParameters(Observes.class).get(0).getType(),
observerMethod.getAnnotatedParameters(Observes.class).get(0).getBindingTypesAsArray());
}
- for (AnnotatedField<Object> producerField : bean.getProducerFields())
+ else
{
- ProducerFieldBean<?> producerFieldBean =
createProducerFieldBean(producerField, bean);
- beans.add(producerFieldBean);
- log.info("Web Bean: " + producerFieldBean);
+ throw new DefinitionException("Observer method can only have one
parameter annotated @Observes " + observer);
}
- for (AnnotatedField<Object> eventField : bean.getEventFields())
- {
- EventBean<?> eventBean = createEventBean(eventField);
- beans.add(eventBean);
-
CurrentManager.rootManager().getResolver().addInjectionPoints(eventBean.getInjectionPoints());
- log.info("Web Bean: " + eventBean);
- }
- for (AnnotatedMethod<Object> observerMethod : bean.getObserverMethods())
- {
- ObserverImpl<?> observer = createObserver(observerMethod, bean);
- if (observerMethod.getAnnotatedParameters(Observes.class).size() == 1)
- {
- registerObserver(observer,
observerMethod.getAnnotatedParameters(Observes.class).get(0).getType(),
observerMethod.getAnnotatedParameters(Observes.class).get(0).getBindingTypesAsArray());
- }
- else
- {
- throw new DefinitionException("Observer method can only have one
parameter annotated @Observes " + observer);
- }
-
- }
- log.info("Web Bean: " + bean);
+
}
- return beans;
+ log.info("Web Bean: " + bean);
}
@@ -244,5 +254,10 @@
{
CurrentManager.rootManager().addObserver(observer, (Class<T>) eventType,
bindings);
}
+
+ protected static boolean isTypeSimpleWebBean(Class<?> type)
+ {
+ return !SERVLET_CLASS.isAssignableFrom(type) &&
!FILTER_CLASS.isAssignableFrom(type) &&
!SERVLET_CONTEXT_LISTENER_CLASS.isAssignableFrom(type) &&
!HTTP_SESSION_LISTENER_CLASS.isAssignableFrom(type) &&
!SERVLET_REQUEST_LISTENER_CLASS.isAssignableFrom(type) &&
!ENTERPRISE_BEAN_CLASS.isAssignableFrom(type) &&
!UICOMPONENT_CLASS.isAssignableFrom(type);
+ }
}
Modified: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/ejb/EJB.java
===================================================================
--- ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/ejb/EJB.java 2008-12-07 17:46:04
UTC (rev 444)
+++ ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/ejb/EJB.java 2008-12-07 17:50:01
UTC (rev 445)
@@ -19,20 +19,16 @@
import java.lang.annotation.Annotation;
-import org.jboss.webbeans.util.Reflections;
+import org.jboss.webbeans.util.ApiAbstraction;
/**
* Utility class for EJB annotations etc
*
* @author Pete Muir
*/
-public class EJB
+public class EJB extends ApiAbstraction
{
- public @interface Dummy
- {
- }
-
// Annotation instances
public static final Class<? extends Annotation> STATELESS_ANNOTATION;
public static final Class<? extends Annotation> STATEFUL_ANNOTATION;
@@ -40,41 +36,23 @@
public static final Class<? extends Annotation> FAKE_MESSAGE_DRIVEN_ANNOTATION;
public static final Class<? extends Annotation> SINGLETON_ANNOTATION;
public static final Class<? extends Annotation> REMOVE_ANNOTATION;
+ public static final Class<?> ENTERPRISE_BEAN_CLASS;
/**
* Static initialization block
*/
static
{
- STATELESS_ANNOTATION = classForName("javax.ejb.Stateless");
- STATEFUL_ANNOTATION = classForName("javax.ejb.Stateful");
- MESSAGE_DRIVEN_ANNOTATION = classForName("javax.ejb.MessageDriven");
+ STATELESS_ANNOTATION = annotationTypeForName("javax.ejb.Stateless");
+ STATEFUL_ANNOTATION = annotationTypeForName("javax.ejb.Stateful");
+ MESSAGE_DRIVEN_ANNOTATION =
annotationTypeForName("javax.ejb.MessageDriven");
// Fake MDB for tests
- FAKE_MESSAGE_DRIVEN_ANNOTATION =
classForName("org.jboss.webbeans.test.annotations.MessageDriven");
+ FAKE_MESSAGE_DRIVEN_ANNOTATION =
annotationTypeForName("org.jboss.webbeans.test.annotations.MessageDriven");
// FIXME Faking singleton for tests
- SINGLETON_ANNOTATION =
classForName("org.jboss.webbeans.test.annotations.Singleton");
+ SINGLETON_ANNOTATION =
annotationTypeForName("org.jboss.webbeans.test.annotations.Singleton");
// SINGLETON_ANNOTATION = classForName("javax.ejb.Singleton");
- REMOVE_ANNOTATION = classForName("javax.ejb.Remove");
+ REMOVE_ANNOTATION = annotationTypeForName("javax.ejb.Remove");
+ ENTERPRISE_BEAN_CLASS = classForName("javax.ejb.EnterpriseBean");
}
- /**
- * Initializes an annotation class
- *
- * @param name The name of the annotation class
- * @return The instance of the annotation. Returns a dummy if the class was
- * not found
- */
- @SuppressWarnings("unchecked")
- private static Class<? extends Annotation> classForName(String name)
- {
- try
- {
- return (Class<? extends Annotation>) Reflections.classForName(name);
- }
- catch (ClassNotFoundException cnfe)
- {
- return Dummy.class;
- }
- }
-
}
Added: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/jsf/JSF.java
===================================================================
--- ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/jsf/JSF.java
(rev 0)
+++ ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/jsf/JSF.java 2008-12-07 17:50:01
UTC (rev 445)
@@ -0,0 +1,10 @@
+package org.jboss.webbeans.jsf;
+
+import org.jboss.webbeans.util.ApiAbstraction;
+
+public class JSF extends ApiAbstraction
+{
+
+ public static final Class<?> UICOMPONENT_CLASS =
classForName("javax.faces.component.UIComponent");
+
+}
Property changes on: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/jsf/JSF.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/servlet/Servlet.java
===================================================================
--- ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/servlet/Servlet.java
(rev 0)
+++ ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/servlet/Servlet.java 2008-12-07
17:50:01 UTC (rev 445)
@@ -0,0 +1,14 @@
+package org.jboss.webbeans.servlet;
+
+import org.jboss.webbeans.util.ApiAbstraction;
+
+public class Servlet extends ApiAbstraction
+{
+
+ public static final Class<?> SERVLET_CLASS =
classForName("javax.servlet.Servlet");
+ public static final Class<?> FILTER_CLASS =
classForName("javax.servlet.Filter");
+ public static final Class<?> SERVLET_CONTEXT_LISTENER_CLASS =
classForName("javax.servlet.ServletContextListener");
+ public static final Class<?> HTTP_SESSION_LISTENER_CLASS =
classForName("javax.servlet.http.HttpSessionListener");
+ public static final Class<?> SERVLET_REQUEST_LISTENER_CLASS =
classForName("javax.servlet.ServletRequestListener");
+
+}
Property changes on:
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/servlet/Servlet.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/util/ApiAbstraction.java
===================================================================
--- ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/util/ApiAbstraction.java
(rev 0)
+++
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/util/ApiAbstraction.java 2008-12-07
17:50:01 UTC (rev 445)
@@ -0,0 +1,52 @@
+package org.jboss.webbeans.util;
+
+import java.lang.annotation.Annotation;
+
+public class ApiAbstraction
+{
+
+ public @interface DummyAnnotation
+ {
+ }
+
+
+ public interface Dummy
+ {
+ }
+
+ /**
+ * Initializes an annotation class
+ *
+ * @param name The name of the annotation class
+ * @return The instance of the annotation. Returns a dummy if the class was
+ * not found
+ */
+ @SuppressWarnings("unchecked")
+ protected static Class<? extends Annotation> annotationTypeForName(String name)
+ {
+ try
+ {
+ return (Class<? extends Annotation>) Reflections.classForName(name);
+ }
+ catch (ClassNotFoundException cnfe)
+ {
+ return DummyAnnotation.class;
+ }
+ }
+
+ @SuppressWarnings("unchecked")
+ protected static Class<?> classForName(String name)
+ {
+ try
+ {
+ return (Class<? extends Annotation>) Reflections.classForName(name);
+ }
+ catch (ClassNotFoundException cnfe)
+ {
+ return Dummy.class;
+ }
+ }
+
+
+
+}
Property changes on:
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/util/ApiAbstraction.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/util/Reflections.java
===================================================================
--- ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/util/Reflections.java 2008-12-07
17:46:04 UTC (rev 444)
+++ ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/util/Reflections.java 2008-12-07
17:50:01 UTC (rev 445)
@@ -63,6 +63,8 @@
return Class.forName(name);
}
}
+
+
/**
* Gets the property name from a getter method
Modified:
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/SimpleBeanLifecycleTest.java
===================================================================
---
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/SimpleBeanLifecycleTest.java 2008-12-07
17:46:04 UTC (rev 444)
+++
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/SimpleBeanLifecycleTest.java 2008-12-07
17:50:01 UTC (rev 445)
@@ -14,7 +14,7 @@
import org.jboss.webbeans.test.beans.TunaFarm;
import org.testng.annotations.Test;
-@SpecVersion("PDR")
+@SpecVersion("20081206")
public class SimpleBeanLifecycleTest extends AbstractTest
{
Modified:
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/SimpleBeanModelTest.java
===================================================================
---
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/SimpleBeanModelTest.java 2008-12-07
17:46:04 UTC (rev 444)
+++
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/SimpleBeanModelTest.java 2008-12-07
17:50:01 UTC (rev 445)
@@ -3,7 +3,9 @@
import static org.jboss.webbeans.util.BeanFactory.createSimpleBean;
import java.lang.annotation.Annotation;
+import java.util.Arrays;
import java.util.HashMap;
+import java.util.HashSet;
import java.util.Map;
import java.util.Set;
@@ -28,10 +30,18 @@
import org.jboss.webbeans.test.beans.broken.ParameterizedBean;
import org.jboss.webbeans.test.beans.broken.OuterBean.InnerBean;
import org.jboss.webbeans.test.beans.broken.OuterBean.StaticInnerBean;
+import org.jboss.webbeans.test.beans.nonBeans.EnterpriseBeanWebBean;
+import org.jboss.webbeans.test.beans.nonBeans.FilterBean;
+import org.jboss.webbeans.test.beans.nonBeans.HttpSessionListenerBean;
+import org.jboss.webbeans.test.beans.nonBeans.ServletBean;
+import org.jboss.webbeans.test.beans.nonBeans.ServletContextListenerBean;
+import org.jboss.webbeans.test.beans.nonBeans.ServletRequestListenerBean;
+import org.jboss.webbeans.test.beans.nonBeans.UIComponentBean;
import org.jboss.webbeans.test.bindings.SynchronousAnnotationLiteral;
+import org.jboss.webbeans.test.mock.MockWebBeanDiscovery;
import org.testng.annotations.Test;
-@SpecVersion("PDR")
+@SpecVersion("20081206")
public class SimpleBeanModelTest extends AbstractTest
{
@@ -68,9 +78,36 @@
}
- @Test(groups="deployment") @SpecAssertion(section="3.2")
- public void testOnlyOneWebBeanPerAnnotatedClass()
+ @Test(groups="stub")
+ public void testEntitiesNotDiscoveredAsSimpleBeans()
{
+ assert false;
+ }
+
+ @Test
+ public void testClassesImplementingServletInterfacesNotDiscoveredAsSimpleBeans()
+ {
+ bootstrap.boot(new MockWebBeanDiscovery(new
HashSet<Class<?>>(Arrays.asList(FilterBean.class,
HttpSessionListenerBean.class, ServletBean.class, ServletContextListenerBean.class,
ServletRequestListenerBean.class)), null, null));
+ assert manager.getBeans().size() == 1;
+ }
+
+ @Test
+ public void testClassesImplementingEnterpriseBeanInterfaceNotDiscoveredAsSimpleBean()
+ {
+ bootstrap.boot(new MockWebBeanDiscovery(new
HashSet<Class<?>>(Arrays.asList(EnterpriseBeanWebBean.class)), null, null));
+ assert manager.getBeans().size() == 1;
+ }
+
+ @Test
+ public void testClassExtendingUiComponentNotDiscoveredAsSimpleBean()
+ {
+ bootstrap.boot(new MockWebBeanDiscovery(new
HashSet<Class<?>>(Arrays.asList(UIComponentBean.class)), null, null));
+ assert manager.getBeans().size() == 1;
+ }
+
+ @Test(groups="stub")
+ public void testEjbsNotDiscoveredAsSimpleBean()
+ {
}
Added:
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/nonBeans/EnterpriseBeanWebBean.java
===================================================================
---
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/nonBeans/EnterpriseBeanWebBean.java
(rev 0)
+++
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/nonBeans/EnterpriseBeanWebBean.java 2008-12-07
17:50:01 UTC (rev 445)
@@ -0,0 +1,8 @@
+package org.jboss.webbeans.test.beans.nonBeans;
+
+import javax.ejb.EnterpriseBean;
+
+public class EnterpriseBeanWebBean implements EnterpriseBean
+{
+
+}
Property changes on:
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/nonBeans/EnterpriseBeanWebBean.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/nonBeans/EntityBean.java
===================================================================
---
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/nonBeans/EntityBean.java
(rev 0)
+++
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/nonBeans/EntityBean.java 2008-12-07
17:50:01 UTC (rev 445)
@@ -0,0 +1,6 @@
+package org.jboss.webbeans.test.beans.nonBeans;
+
+public class EntityBean
+{
+
+}
Property changes on:
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/nonBeans/EntityBean.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/nonBeans/FilterBean.java
===================================================================
---
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/nonBeans/FilterBean.java
(rev 0)
+++
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/nonBeans/FilterBean.java 2008-12-07
17:50:01 UTC (rev 445)
@@ -0,0 +1,33 @@
+package org.jboss.webbeans.test.beans.nonBeans;
+
+import java.io.IOException;
+
+import javax.servlet.Filter;
+import javax.servlet.FilterChain;
+import javax.servlet.FilterConfig;
+import javax.servlet.ServletException;
+import javax.servlet.ServletRequest;
+import javax.servlet.ServletResponse;
+
+public class FilterBean implements Filter
+{
+
+ public void destroy()
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ public void doFilter(ServletRequest arg0, ServletResponse arg1, FilterChain arg2)
throws IOException, ServletException
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ public void init(FilterConfig arg0) throws ServletException
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+}
Property changes on:
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/nonBeans/FilterBean.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/nonBeans/HttpSessionListenerBean.java
===================================================================
---
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/nonBeans/HttpSessionListenerBean.java
(rev 0)
+++
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/nonBeans/HttpSessionListenerBean.java 2008-12-07
17:50:01 UTC (rev 445)
@@ -0,0 +1,20 @@
+package org.jboss.webbeans.test.beans.nonBeans;
+
+import javax.servlet.http.HttpSessionEvent;
+
+public class HttpSessionListenerBean implements javax.servlet.http.HttpSessionListener
+{
+
+ public void sessionCreated(HttpSessionEvent arg0)
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ public void sessionDestroyed(HttpSessionEvent arg0)
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+}
Property changes on:
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/nonBeans/HttpSessionListenerBean.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/nonBeans/ServletBean.java
===================================================================
---
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/nonBeans/ServletBean.java
(rev 0)
+++
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/nonBeans/ServletBean.java 2008-12-07
17:50:01 UTC (rev 445)
@@ -0,0 +1,44 @@
+package org.jboss.webbeans.test.beans.nonBeans;
+
+import java.io.IOException;
+
+import javax.servlet.Servlet;
+import javax.servlet.ServletConfig;
+import javax.servlet.ServletException;
+import javax.servlet.ServletRequest;
+import javax.servlet.ServletResponse;
+
+public class ServletBean implements Servlet
+{
+
+ public void destroy()
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ public ServletConfig getServletConfig()
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public String getServletInfo()
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public void init(ServletConfig arg0) throws ServletException
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ public void service(ServletRequest arg0, ServletResponse arg1) throws
ServletException, IOException
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+}
Property changes on:
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/nonBeans/ServletBean.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/nonBeans/ServletContextListenerBean.java
===================================================================
---
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/nonBeans/ServletContextListenerBean.java
(rev 0)
+++
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/nonBeans/ServletContextListenerBean.java 2008-12-07
17:50:01 UTC (rev 445)
@@ -0,0 +1,21 @@
+package org.jboss.webbeans.test.beans.nonBeans;
+
+import javax.servlet.ServletContextEvent;
+import javax.servlet.ServletContextListener;
+
+public class ServletContextListenerBean implements ServletContextListener
+{
+
+ public void contextDestroyed(ServletContextEvent arg0)
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ public void contextInitialized(ServletContextEvent arg0)
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+}
Property changes on:
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/nonBeans/ServletContextListenerBean.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/nonBeans/ServletRequestListenerBean.java
===================================================================
---
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/nonBeans/ServletRequestListenerBean.java
(rev 0)
+++
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/nonBeans/ServletRequestListenerBean.java 2008-12-07
17:50:01 UTC (rev 445)
@@ -0,0 +1,21 @@
+package org.jboss.webbeans.test.beans.nonBeans;
+
+import javax.servlet.ServletRequestEvent;
+import javax.servlet.ServletRequestListener;
+
+public class ServletRequestListenerBean implements ServletRequestListener
+{
+
+ public void requestDestroyed(ServletRequestEvent arg0)
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ public void requestInitialized(ServletRequestEvent arg0)
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+}
Property changes on:
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/nonBeans/ServletRequestListenerBean.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/nonBeans/UIComponentBean.java
===================================================================
---
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/nonBeans/UIComponentBean.java
(rev 0)
+++
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/nonBeans/UIComponentBean.java 2008-12-07
17:50:01 UTC (rev 445)
@@ -0,0 +1,295 @@
+package org.jboss.webbeans.test.beans.nonBeans;
+
+import java.io.IOException;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+
+import javax.faces.component.UIComponent;
+import javax.faces.context.FacesContext;
+import javax.faces.el.ValueBinding;
+import javax.faces.event.AbortProcessingException;
+import javax.faces.event.FacesEvent;
+import javax.faces.event.FacesListener;
+import javax.faces.render.Renderer;
+
+public class UIComponentBean extends UIComponent
+{
+
+ @Override
+ protected void addFacesListener(FacesListener arg0)
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void broadcast(FacesEvent arg0) throws AbortProcessingException
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void decode(FacesContext arg0)
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void encodeBegin(FacesContext arg0) throws IOException
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void encodeChildren(FacesContext arg0) throws IOException
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void encodeEnd(FacesContext arg0) throws IOException
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public UIComponent findComponent(String arg0)
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public Map<String, Object> getAttributes()
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public int getChildCount()
+ {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ @Override
+ public List<UIComponent> getChildren()
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public String getClientId(FacesContext arg0)
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ protected FacesContext getFacesContext()
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ protected FacesListener[] getFacesListeners(Class arg0)
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public UIComponent getFacet(String arg0)
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public Map<String, UIComponent> getFacets()
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public Iterator<UIComponent> getFacetsAndChildren()
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public String getFamily()
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public String getId()
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public UIComponent getParent()
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ protected Renderer getRenderer(FacesContext arg0)
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public String getRendererType()
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public boolean getRendersChildren()
+ {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public ValueBinding getValueBinding(String arg0)
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public boolean isRendered()
+ {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public void processDecodes(FacesContext arg0)
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void processRestoreState(FacesContext arg0, Object arg1)
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public Object processSaveState(FacesContext arg0)
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public void processUpdates(FacesContext arg0)
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void processValidators(FacesContext arg0)
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void queueEvent(FacesEvent arg0)
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ protected void removeFacesListener(FacesListener arg0)
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void setId(String arg0)
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void setParent(UIComponent arg0)
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void setRendered(boolean arg0)
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void setRendererType(String arg0)
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void setValueBinding(String arg0, ValueBinding arg1)
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ public boolean isTransient()
+ {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ public void restoreState(FacesContext arg0, Object arg1)
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ public Object saveState(FacesContext arg0)
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public void setTransient(boolean arg0)
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+}
Property changes on:
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/nonBeans/UIComponentBean.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain