public interface JaffreServer
Modifier and Type | Method and Description |
---|---|
<T> T |
getEndpointInterface(Class<T> p_interface)
Support for local transport.
|
JaffreReturnFrame |
process(JaffreCallFrame p_call,
Object p_extParam)
Process a call frame.
|
void |
registerInterface(Class<?> p_interface,
Object p_obj)
Register an endpoint interface.
|
void |
registerInterface(Object p_obj)
Register an endpoint interface.
|
void registerInterface(Object p_obj)
An implementation normally would choose a suitable interface implemented
by the endpoint and then call registerInterface(Class, Object)
with the choosen interface and the given endpoint as arguments.
p_obj
- A service endpoint that implements an interface.registerInterface(Class, Object).
void registerInterface(Class<?> p_interface, Object p_obj)
p_interface
- The endpoint interface.p_obj
- A service endpoint that implements p_interface
.JaffreReturnFrame process(JaffreCallFrame p_call, Object p_extParam)
p_call
- The call frame to be processed.p_extParam
- A parameter reserved for implementors that need
to pass additional information to this method.<T> T getEndpointInterface(Class<T> p_interface) throws JaffreNoInterfaceException
T
- The type of interface requested from this service.p_interface
- The interface class.JaffreNoInterfaceException
- If p_interface
is not a registered service endpoint interface.Copyright © 2009-2013 Alexander Veit. All Rights Reserved.