Package org.red5.server.service
Class ReflectionUtils
java.lang.Object
org.red5.server.service.ReflectionUtils
Provides a means for locating methods within service classes using reflection.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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.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.
-
Constructor Details
-
ReflectionUtils
public ReflectionUtils()
-
-
Method Details
-
findMethod
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 givenmethodName- method name to findargs- 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 connectioncall- service call interested in the methodservice- service to search for the method, if givenmethodName- method name to find- Returns:
- Method/params pairs or null if not found
-