Author: shane.bryzak(a)jboss.com
Date: 2010-01-22 05:49:52 -0500 (Fri, 22 Jan 2010)
New Revision: 11981
Modified:
modules/remoting/trunk/src/main/java/org/jboss/seam/remoting/MetadataCache.java
modules/remoting/trunk/src/main/java/org/jboss/seam/remoting/Remoting.java
modules/remoting/trunk/src/main/java/org/jboss/seam/remoting/wrapper/BooleanWrapper.java
Log:
make a little more configurable
Modified: modules/remoting/trunk/src/main/java/org/jboss/seam/remoting/MetadataCache.java
===================================================================
---
modules/remoting/trunk/src/main/java/org/jboss/seam/remoting/MetadataCache.java 2010-01-21
21:18:34 UTC (rev 11980)
+++
modules/remoting/trunk/src/main/java/org/jboss/seam/remoting/MetadataCache.java 2010-01-22
10:49:52 UTC (rev 11981)
@@ -1,6 +1,5 @@
package org.jboss.seam.remoting;
-import java.io.IOException;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
@@ -20,7 +19,6 @@
import javax.enterprise.inject.spi.Bean;
import javax.enterprise.inject.spi.BeanManager;
import javax.inject.Inject;
-import javax.servlet.http.HttpServletResponse;
import org.jboss.seam.remoting.BeanMetadata.BeanType;
import org.jboss.seam.remoting.annotations.WebRemote;
Modified: modules/remoting/trunk/src/main/java/org/jboss/seam/remoting/Remoting.java
===================================================================
--- modules/remoting/trunk/src/main/java/org/jboss/seam/remoting/Remoting.java 2010-01-21
21:18:34 UTC (rev 11980)
+++ modules/remoting/trunk/src/main/java/org/jboss/seam/remoting/Remoting.java 2010-01-22
10:49:52 UTC (rev 11981)
@@ -245,6 +245,21 @@
{
this.servletConfig = config;
}
+
+ protected ExecutionHandler getExecutionHandler()
+ {
+ return executionHandlerInstance.get();
+ }
+
+ protected InterfaceGenerator getInterfaceHandler()
+ {
+ return interfaceHandlerInstance.get();
+ }
+
+ protected ModelHandler getModelHandler()
+ {
+ return modelHandlerInstance.get();
+ }
public void service(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException
@@ -260,15 +275,15 @@
if (REQUEST_PATH_EXECUTE.equals(pathInfo))
{
- executionHandlerInstance.get().handle(request, response);
+ getExecutionHandler().handle(request, response);
}
else if (REQUEST_PATH_INTERFACE.equals(pathInfo))
{
- interfaceHandlerInstance.get().handle(request, response);
+ getInterfaceHandler().handle(request, response);
}
else if (REQUEST_PATH_MODEL.equals(pathInfo))
{
- modelHandlerInstance.get().handle(request, response);
+ getModelHandler().handle(request, response);
}
else
{
Modified:
modules/remoting/trunk/src/main/java/org/jboss/seam/remoting/wrapper/BooleanWrapper.java
===================================================================
---
modules/remoting/trunk/src/main/java/org/jboss/seam/remoting/wrapper/BooleanWrapper.java 2010-01-21
21:18:34 UTC (rev 11980)
+++
modules/remoting/trunk/src/main/java/org/jboss/seam/remoting/wrapper/BooleanWrapper.java 2010-01-22
10:49:52 UTC (rev 11981)
@@ -41,7 +41,7 @@
return value;
}
- public ConversionScore conversionScore(Class cls)
+ public ConversionScore conversionScore(Class<?> cls)
{
if (cls.equals(Boolean.class) || cls.equals(Boolean.TYPE))
return ConversionScore.exact;