[jira] Commented: (TAP5-1454) Provide a public API to get a service from registry by a set of marker annotations

2011-03-16 Thread Tom van Dijk (JIRA)

[ 
https://issues.apache.org/jira/browse/TAP5-1454?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13007536#comment-13007536
 ] 

Tom van Dijk commented on TAP5-1454:


This issue is a duplicate of TAP5-1321.

 Provide a public API to get a service from registry by a set of marker 
 annotations
 --

 Key: TAP5-1454
 URL: https://issues.apache.org/jira/browse/TAP5-1454
 Project: Tapestry 5
  Issue Type: Improvement
Reporter: Igor Drobiazko
Assignee: Igor Drobiazko

 Currently the way to get an object from registry by marker annotations is to 
 provide an AnnotationProvider. 
 T T getObject(ClassT objectType, AnnotationProvider annotationProvider);
 This is very inconvenient as you can't instantiate annotations.  It should be 
 possible to get an object from registry like this:
 T, A extends Annotation T getObject(ClassT objectType, A[] 
 markerAnnotations);

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


[jira] Commented: (TAP5-1454) Provide a public API to get a service from registry by a set of marker annotations

2011-03-03 Thread Massimo Lusetti (JIRA)

[ 
https://issues.apache.org/jira/browse/TAP5-1454?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13001936#comment-13001936
 ] 

Massimo Lusetti commented on TAP5-1454:
---

Either way this would be awesome!

 Provide a public API to get a service from registry by a set of marker 
 annotations
 --

 Key: TAP5-1454
 URL: https://issues.apache.org/jira/browse/TAP5-1454
 Project: Tapestry 5
  Issue Type: Improvement
Reporter: Igor Drobiazko
Assignee: Igor Drobiazko

 Currently the way to get an object from registry by marker annotations is to 
 provide an AnnotationProvider. 
 T T getObject(ClassT objectType, AnnotationProvider annotationProvider);
 This is very inconvenient as you can't instantiate annotations.  It should be 
 possible to get an object from registry like this:
 T, A extends Annotation T getObject(ClassT objectType, A[] 
 markerAnnotations);

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




[jira] Commented: (TAP5-1454) Provide a public API to get a service from registry by a set of marker annotations

2011-03-03 Thread Igor Drobiazko (JIRA)

[ 
https://issues.apache.org/jira/browse/TAP5-1454?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13001943#comment-13001943
 ] 

Igor Drobiazko commented on TAP5-1454:
--

@Howard: Yes, the example in the issue description is not what I intended. 

 Provide a public API to get a service from registry by a set of marker 
 annotations
 --

 Key: TAP5-1454
 URL: https://issues.apache.org/jira/browse/TAP5-1454
 Project: Tapestry 5
  Issue Type: Improvement
Reporter: Igor Drobiazko
Assignee: Igor Drobiazko

 Currently the way to get an object from registry by marker annotations is to 
 provide an AnnotationProvider. 
 T T getObject(ClassT objectType, AnnotationProvider annotationProvider);
 This is very inconvenient as you can't instantiate annotations.  It should be 
 possible to get an object from registry like this:
 T, A extends Annotation T getObject(ClassT objectType, A[] 
 markerAnnotations);

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




[jira] Commented: (TAP5-1454) Provide a public API to get a service from registry by a set of marker annotations

2011-03-02 Thread Howard M. Lewis Ship (JIRA)

[ 
https://issues.apache.org/jira/browse/TAP5-1454?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13001525#comment-13001525
 ] 

Howard M. Lewis Ship commented on TAP5-1454:


Don't you mean something like:


T T getObject(ClassT objectType, Class? super Annotation[] 
markerAnnotations);


... with what you have, you still have to instantiate the annotations.  Of 
course, Plastic knows how to do that!

 Provide a public API to get a service from registry by a set of marker 
 annotations
 --

 Key: TAP5-1454
 URL: https://issues.apache.org/jira/browse/TAP5-1454
 Project: Tapestry 5
  Issue Type: Improvement
Reporter: Igor Drobiazko
Assignee: Igor Drobiazko

 Currently the way to get an object from registry by marker annotations is to 
 provide an AnnotationProvider. 
 T T getObject(ClassT objectType, AnnotationProvider annotationProvider);
 This is very inconvenient as you can't instantiate annotations.  It should be 
 possible to get an object from registry like this:
 T, A extends Annotation T getObject(ClassT objectType, A[] 
 markerAnnotations);

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