de.netseeker.ejoe.handler
Class ClassHandler

java.lang.Object
  extended byde.netseeker.ejoe.handler.ClassHandler
All Implemented Interfaces:
ServerHandler

public class ClassHandler
extends java.lang.Object
implements ServerHandler

A ServerHandler which handles class loader requests. It reads the .class file of the requested class and returns the content as an ByteArray. A cache is used to store the last thousand returned classes.

Author:
netseeker aka Michael Manske

Constructor Summary
ClassHandler()
           
 
Method Summary
 java.lang.Object handle(java.lang.Object obj)
          Handles a client request
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassHandler

public ClassHandler()
Method Detail

handle

public java.lang.Object handle(java.lang.Object obj)
Description copied from interface: ServerHandler
Handles a client request

Specified by:
handle in interface ServerHandler
Parameters:
obj - The input object transported by EJOE
Returns:
null or an valid return value. If you want return custom datatypes, eg. your own beans and don't want (or are not able) to deploy the classes of these datatypes on the client you can turn on EJOEs remote classloading feature.


Copyright © 2005-2006 netseeker. All Rights Reserved.