[ 
http://jira.amdatu.org/jira/browse/AMDATU-198?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=10422#comment-10422
 ] 

Ivo Ladage - van Doorn commented on AMDATU-198:
-----------------------------------------------

My conclusion is that it thus shouldn't be a factory:
1) It has multiple implementations (where you would use a factory in classic 
Java). E.g. XML Parser, Log, etc. 
No, there is only one implementation and it makes no sense at all to allow to 
have multiple implementations

2) It abstracts a concept so multiple parties could provide it. For example a 
JDBC connection 
If another party would provide it, it would have another implementation (like 
Wink). There is no standard for it, no interface, nothing at all. It's just a 
utility class.

3) It is optional, for example a Log or Web service. 
It is optional if you don't need Atom links in your return calls, of if you use 
the Wink utility class, of if you write your own class

4) It makes sense to have more than one of it, a listener 
It doesn't

5) It is not 100% reliable, a remote connection 
It should be 100% reliable



> Add an AtomSyndicationLink class to JAX-RS bundle to prevent the need of Wink 
> dependencies in REST services
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: AMDATU-198
>                 URL: http://jira.amdatu.org/jira/browse/AMDATU-198
>             Project: Amdatu
>          Issue Type: Improvement
>          Components: Amdatu Web - REST
>    Affects Versions: 0.0.6
>            Reporter: Ivo Ladage - van Doorn
>            Assignee: Ivo Ladage - van Doorn
>
> To support HATEOS in a REST service it is pretty 'handy' to depend on the 
> SyndLink and LinkBuilders class in the Wink specific implementation of 
> JAX-RS. For LinkBuilders there is a JAX-RS alternative (UriInfo), but for 
> Atom links there is not. It would be usefull to add such a class to the 
> Amdatu JAX-RS bundle such that other bundles that want to expose REST 
> services do not need to depend on the Wink bundle anymore (or copy the code, 
> over and over again)

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

        

Reply via email to