[jboss-jira] [JBoss JIRA] Commented: (JBCACHE-815) Eliminate need for jboss-serialization.jar if it's not used
Clebert Suconic (JIRA)
jira-events at jboss.com
Wed Nov 1 16:50:41 EST 2006
[ http://jira.jboss.com/jira/browse/JBCACHE-815?page=comments#action_12346127 ]
Clebert Suconic commented on JBCACHE-815:
-----------------------------------------
I thought this following code would mean having a dependency with jboss-serialization.jar:
public static ObjectInputStream createObjectInputStream(byte[] bytes) throws IOException
{
ByteArrayInputStream in = new ByteArrayInputStream(bytes);
if (useJBossSerialization)
{
return new JBossObjectInputStreamOverride(in);
}
else
{
return new MarshalledValueInputStream(in);
}
}
Is it possible to use an interface as I proposed, so you don't need to use reflection to create JbossSerialization?
If the stuff is working (not loading jboss-serialization.jar) and if you don't like the idea of the interface, just close the issue again.
> Eliminate need for jboss-serialization.jar if it's not used
> -----------------------------------------------------------
>
> Key: JBCACHE-815
> URL: http://jira.jboss.com/jira/browse/JBCACHE-815
> Project: JBoss Cache
> Issue Type: Task
> Security Level: Public(Everyone can see)
> Components: Replication
> Affects Versions: 1.4.0.SP1, 1.4.0.GA
> Reporter: Brian Stansberry
> Assigned To: Manik Surtani
> Priority: Minor
> Fix For: 1.4.1.GA, 2.0.0.GA
>
> Attachments: JavaSerializationFactoryImpl.java, JBossSerializationFactoryImpl.java, ObjectSerializationFactory.java, SerializationFactory.java, Test.java
>
>
> If we're going to stick making use of JBoss serialization a configurable option, we should refactor ObjectSerializationFactory so no jboss-serialization classes are loaded if it's not used. Allows users to drop one more jar from their footprint.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list