[
https://issues.jboss.org/browse/SOLDER-51?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12589535#comment-12589535
]
Dan Allen commented on SOLDER-51:
---------------------------------
The service handler should get "bound" to the type using the same strategy as
is used for interceptor binding.
Binding type:
{code:java}
@Target({ METHOD, TYPE })
@Retention(RetentionPolicy.RUNTIME)
@ServiceHandlerBindingType
public @interface EchoService {}
{code}
Invocation handler:
{code:java}
@ServiceHandlerBindingType
@EchoService
public class EchoServiceHandler {
@AroundInvoke
public Object invoke(InvocationContext ctx) {
return ctx.getMethod().getName().toString();
}
}
{code}
Usage:
{code:java}
@EchoService
public interface HelloWorld {
String helloWorld();
}
{code}
> Decouple service handler annotation from implementation class
> -------------------------------------------------------------
>
> Key: SOLDER-51
> URL: https://issues.jboss.org/browse/SOLDER-51
> Project: Seam Solder
> Issue Type: Feature Request
> Components: Core
> Reporter: Dan Allen
>
> The current design of the service handler configuration prevents modules from
> being able to deliver a service annotation in the api since it requires a
> direct reference to the implementation class.
> @ServiceHandler(MyServiceHandler.class)
> Switch to either a string or adopt the annotation binding concept from CDI
> (like interceptors)
> Also, support the use of the service handler annotation on stereotypes.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
seam-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/seam-issues