public class ServiceTypeParser extends ServiceParser
ServiceParser
implementation for types annotated with Service
.commandPoints, local, svcName
Constructor and Description |
---|
ServiceTypeParser(Class<?> clazz)
Create a
ServiceParser for classes annotated with Service . |
Modifier and Type | Method and Description |
---|---|
MessageCallback |
getCallback(Object delegateInstance) |
Class<?> |
getDelegateClass() |
Class<?> |
getRemoteImplementation() |
boolean |
isCallback() |
String |
toString() |
getCommandPoints, getServiceName, hasCommandPoints, isLocal
public ServiceTypeParser(Class<?> clazz) throws NotAService
ServiceParser
for classes annotated with Service
.clazz
- A class annotated with Service
.NotAService
- Thrown if clazz
does not have a Service
annotation.public Class<?> getRemoteImplementation()
Remote
interface associated with this type service or null
if none exists.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 delegateInstance)
getCallback
in class ServiceParser
Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.