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 ProtocolServletFactory
public void setAnnotated(Annotated annotated)
setAnnotated
in interface ProtocolServletFactory
public abstract Servlet createServlet(java.lang.Class<?> serviceApi, java.lang.Object service) throws ServiceException
createServlet
in interface ProtocolServletFactory
serviceApi
- the remoteApi exposed to the serverservice
- the managed service objectServiceException
protected java.lang.Class<?> getRemoteAPI(java.lang.Class<?> serviceClass)