org.fcrepo.server.access.defaultdisseminator
Class ServiceMethodDispatcher

java.lang.Object
  extended by org.fcrepo.server.access.defaultdisseminator.ServiceMethodDispatcher

public class ServiceMethodDispatcher
extends Object

Invokes a method on an internal service.

This is done using Java reflection where the service is the target object of a dynamic method request.

Author:
Sandy Payette

Constructor Summary
ServiceMethodDispatcher()
           
 
Method Summary
 Object invokeMethod(Object service_object, String methodName, Property[] userParms)
          Invoke a method on an internal service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceMethodDispatcher

public ServiceMethodDispatcher()
Method Detail

invokeMethod

public Object invokeMethod(Object service_object,
                           String methodName,
                           Property[] userParms)
                    throws ServerException
Invoke a method on an internal service. This is done using Java reflection where the service is the target object of a dynamic method request.

Parameters:
service_object - the target object of the service request
methodName - the method to invoke on the target object
userParms - parameters to the method to invoke on target object
Returns:
Throws:
ServerException


Copyright © 2012 DuraSpace. All Rights Reserved.