public interface MethodMissing
siwtchOn() and switchOff(),
but if my device is a door then my dynamic methods would be open() and close().
methodMissing(String, Object) - for synchronous dynamic methods
methodMissing(String, Object, AsyncResult) - for asynchronous methods.
where the methodName argument specifies the method name given within the launched script and
args argument bring the supplied via the launched script arguments.
methodMissingMetaData(String, Object) to tell the system how given dynamic method should be treated -
synchronously or asynchronously and whether its execution should or should not be reported to the user as
a partial execution result, i.e., if the method execution should reflect into dedicated DeviceExecItem
on the fron-end.| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
methodMissing(java.lang.String methodName,
java.lang.Object args)
Represents synchronous invocation of dynamic method.
|
java.lang.Object |
methodMissing(java.lang.String methodName,
java.lang.Object args,
AsyncResult asyncResult) |
MethodMissingMetaData |
methodMissingMetaData(java.lang.String methodName,
java.lang.Object arg)
Dynamically defines meta information about a dynamic method.
|
java.lang.Object methodMissing(java.lang.String methodName,
java.lang.Object args)
throws java.lang.Exception
methodName - the method name.args - the method arguments.java.lang.Exception - method invocation error.java.lang.Object methodMissing(java.lang.String methodName,
java.lang.Object args,
AsyncResult asyncResult)
throws java.lang.Exception
methodName - the method name.args - the method arguments.asyncResult - null
and actual result is applied at later time via the asyncResult argument.java.lang.Exception - thrown on method invocation error. When real async execution is being performed, this method might not throw an exception,
but exception error to be applied at later time via the asyncResult argument.MethodMissingMetaData methodMissingMetaData(java.lang.String methodName, java.lang.Object arg) throws java.lang.Exception
methodMissing(String, Object, AsyncResult), or
synchronous - in this case the method will be invoked via methodMissing(String, Object)
methodName - the method name.args - the method arguments.java.lang.Exception - if some error with detecting the dynamic method occurs, for instance: unexpected method name or arguments.Copyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.