[infinispan-issues] [JBoss JIRA] Commented: (ISPN-857) Favour Externalizer method implementations over @Marshalls annotation values

Galder Zamarreño (JIRA) jira-events at lists.jboss.org
Tue Jan 11 12:11:49 EST 2011


    [ https://issues.jboss.org/browse/ISPN-857?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12574732#comment-12574732 ] 

Galder Zamarreño commented on ISPN-857:
---------------------------------------

Updated http://community.jboss.org/docs/DOC-16198

> Favour Externalizer method implementations over @Marshalls annotation values
> ----------------------------------------------------------------------------
>
>                 Key: ISPN-857
>                 URL: https://issues.jboss.org/browse/ISPN-857
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Marshalling
>    Affects Versions: 5.0.0.ALPHA1
>            Reporter: Galder Zamarreño
>            Assignee: Galder Zamarreño
>             Fix For: 5.0.0.ALPHA2
>
>
> Enhance Externalizer interface with methods for getTypeClasses(), getTypeClassNames() and getId() in favour of annotations.
> The reason for doing this is twofold:
> - The use of annotations makes it difficult for other apps to abstract the externalizer framework.
> - Runtime errors not caught at compilation time could arise from code like this where X and Y have no relationship:
> @Marshalls(typeClasses = Y.class, id = ExternalizerIds.XExternalizer)
> public class XExternalizer implements
> 		Externalizer<X> {
> In particular, code like this would maintain guarantees between classes externalized and return of readObject(): 
> List<Class<? extends T>> getTypeClasses();

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the infinispan-issues mailing list