|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.netseeker.ejoe.handler.BaseRemotingHandler
public abstract class BaseRemotingHandler
Base class for the family of reflection based ServerHandlers. Basically these ServerHandlers allow the usage of remote method invocations which the EJOE Sever handles using:
Field Summary | |
---|---|
protected java.util.Map |
classCache
pre-cache all known Wrapper-Primitive-Pairs as well as all known Primitive-Wrapper-Pairs |
Constructor Summary | |
---|---|
BaseRemotingHandler()
|
Method Summary | |
---|---|
boolean |
deRegisterClassMapping(java.lang.String alias)
|
protected java.lang.Class |
getClassByName(java.lang.String cName)
Either loads a class via reflection or (if already cached) from a Class-cache |
static java.lang.Class |
getPrimitiveForWrapper(java.lang.Class wrapper)
Returns the appropiate primitive type for the given wrapper type, eg. int for Integer |
static java.lang.Class |
getWrapperForPrimitive(java.lang.Class primitive)
Returns the appropiate wrapper type for the given primitive type, eg. |
java.lang.Object |
handle(java.lang.Object params)
Handles a client request |
void |
registerClassMapping(java.lang.String clazz,
java.lang.String alias)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.Map classCache
Constructor Detail |
---|
public BaseRemotingHandler()
Method Detail |
---|
public java.lang.Object handle(java.lang.Object params) throws java.lang.Exception
ServerHandler
handle
in interface ServerHandler
params
- The input object transported by EJOE
java.lang.Exception
public static java.lang.Class getWrapperForPrimitive(java.lang.Class primitive)
primitive
- primitive java type
public static java.lang.Class getPrimitiveForWrapper(java.lang.Class wrapper)
wrapper
- java wrapper type
protected java.lang.Class getClassByName(java.lang.String cName) throws java.lang.ClassNotFoundException, java.security.AccessControlException
cName
- complete name of the class with package names
java.lang.ClassNotFoundException
java.security.AccessControlException
public void registerClassMapping(java.lang.String clazz, java.lang.String alias)
registerClassMapping
in interface ClassRegistry
public boolean deRegisterClassMapping(java.lang.String alias)
deRegisterClassMapping
in interface ClassRegistry
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |