public class ServiceMethodParser extends ServiceParser
ServiceParser
implementation for methods annotated with Service
.commandPoints, local, svcName
Constructor and Description |
---|
ServiceMethodParser(Method method)
Create a
ServiceParser for methods annotated with Service . |
Modifier and Type | Method and Description |
---|---|
MessageCallback |
getCallback(Object delegate) |
Class<?> |
getDelegateClass() |
boolean |
isCallback() |
String |
toString() |
getCommandPoints, getServiceName, hasCommandPoints, isLocal
public ServiceMethodParser(Method method) throws NotAService
ServiceParser
for methods annotated with Service
.method
- A method annotated with Service
.NotAService
- Thrown if method
does not have a Service
annotation.public Class<?> getDelegateClass()
getDelegateClass
in class ServiceParser
Class
of the delegate instance for this service.Service
annotation on a type, this will be that type.Service
annotation on a method, this will be the enclosing type.public boolean isCallback()
isCallback
in class ServiceParser
MessageCallback
.public MessageCallback getCallback(Object delegate)
getCallback
in class ServiceParser
Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.