- Revision
- 605
- Author
- mauro
- Date
- 2008-04-03 09:00:42 -0500 (Thu, 03 Apr 2008)
Log Message
Made HttpSessionComponentAdapter Serializable and removed generics warnings.
Modified Paths
Diff
Modified: trunk/waffle-core/src/main/java/org/codehaus/waffle/context/pico/HttpSessionComponentAdapter.java (604 => 605)
--- trunk/waffle-core/src/main/java/org/codehaus/waffle/context/pico/HttpSessionComponentAdapter.java 2008-04-02 19:19:50 UTC (rev 604) +++ trunk/waffle-core/src/main/java/org/codehaus/waffle/context/pico/HttpSessionComponentAdapter.java 2008-04-03 14:00:42 UTC (rev 605) @@ -18,18 +18,22 @@ import org.codehaus.waffle.context.CurrentHttpServletRequest; import javax.servlet.http.HttpSession; + +import java.io.Serializable; import java.lang.reflect.InvocationHandler; import java.lang.reflect.Method; import java.lang.reflect.Proxy; -public class HttpSessionComponentAdapter implements ComponentAdapter { - private final Class componentImplementation = HttpSession.class; [EMAIL PROTECTED]("serial") +public class HttpSessionComponentAdapter implements ComponentAdapter, Serializable { + + private final Class<?> componentImplementation = HttpSession.class; public Object getComponentKey() { return componentImplementation; } - public Class getComponentImplementation() { + public Class<?> getComponentImplementation() { return componentImplementation; } @@ -49,7 +53,7 @@ private static class HttpSessionProxy implements InvocationHandler { - public Object invoke(Object proxy, Method method, Object... args) throws Throwable { + public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { HttpSession session = CurrentHttpServletRequest.get().getSession(); return method.invoke(session, args);
To unsubscribe from this list please visit:
