public abstract class AbstractProtocolServletFactory extends java.lang.Object implements ProtocolServletFactory
| Constructor and Description |
|---|
AbstractProtocolServletFactory() |
| Modifier and Type | Method and Description |
|---|---|
abstract Servlet |
createServlet(java.lang.Class<?> serviceApi,
java.lang.Object service)
Creates a new servlet skeleton based on an API and an object
|
protected java.lang.Class<?> |
getRemoteAPI(java.lang.Class<?> serviceClass)
Returns the remote interface to expose as a service.
|
void |
setAnnotated(Annotated annotated)
Sets the ServiceType annotated
|
void |
setServiceType(java.lang.annotation.Annotation ann)
Sets the ServiceType annotation
|
public void setServiceType(java.lang.annotation.Annotation ann)
setServiceType in interface ProtocolServletFactorypublic void setAnnotated(Annotated annotated)
setAnnotated in interface ProtocolServletFactorypublic abstract Servlet createServlet(java.lang.Class<?> serviceApi, java.lang.Object service) throws ServiceException
createServlet in interface ProtocolServletFactoryserviceApi - the remoteApi exposed to the serverservice - the managed service objectServiceExceptionprotected java.lang.Class<?> getRemoteAPI(java.lang.Class<?> serviceClass)