Class ReflectionUtils

java.lang.Object
org.red5.server.service.ReflectionUtils

public class ReflectionUtils extends Object
Provides a means for locating methods within service classes using reflection.
  • Constructor Details

    • ReflectionUtils

      public ReflectionUtils()
  • Method Details

    • findMethod

      public static Object[] findMethod(Object service, String methodName, List<?> listArgs)
      Returns (method, params) for the given service or method name if found on a service or scope handler. There is no connection argument for these calls. SharedObjectScope uses this method to find methods on the handler.
      Parameters:
      service - service to search for the method, if given
      methodName - method name to find
      args - arguments
      Returns:
      Method/params pairs or null if not found
    • findMethod

      public static Object[] findMethod(IConnection conn, IServiceCall call, Object service, String methodName)
      Returns (method, params) for the given service or method name if found on a service or scope handler.
      Parameters:
      conn - current connection
      call - service call interested in the method
      service - service to search for the method, if given
      methodName - method name to find
      Returns:
      Method/params pairs or null if not found