[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: serializable KernelDeployment

scott.stark@jboss.org do-not-reply at jboss.com
Tue Jan 23 15:15:12 EST 2007


"adrian at jboss.org" wrote : "alesj" wrote : 
  |   | Ok, for MetaData there is no problem.
  |   | What do we do with JavaBeans (which now fail - since with wildcard test's we use plain java.lang.Object)?
  |   | 
  | 
  | Just change the test to use something like the following class:
  | 
  | 
  |   | package org.jboss.test.....;
  |   | 
  |   | import java.io.Serializable;
  |   | 
  |   | public class SerializableObject implements Serializable
  |   | {
  |   |    private static final long serialVersionUID = -1L;
  |   | }
  |   | 

We do have the ability to serialize non-Serializable objects, and this notion should be coming in as an annotation/external metadata passed to the serialization layer rather than a tagging interface that has to be seen in the type system in my view. Exposing Serializable in the mc apis is too onerous a contract.


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4005471#4005471

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4005471



More information about the jboss-dev-forums mailing list