@ Override public Return execute ( final Parameter _parameter ) throws EFapsException { Return ret = null ; _parameter . put ( ParameterValues . PROPERTIES , new HashMap <> ( super . evalProperties ( ) ) ) ; try { EventDefinition . LOG . debug ( "Invoking method '{}' for Resource '{}'" , this . methodName , this . resourceName ) ; final Class < ? > cls = Class . forName ( this . resourceName , true , EFapsClassLoader . getInstance ( ) ) ; final Method method = cls . getMethod ( this . methodName , new Class [ ] { Parameter . class } ) ; ret = ( Return ) method . invoke ( cls . newInstance ( ) , _parameter ) ; EventDefinition . LOG . debug ( "Terminated invokation of method '{}' for Resource '{}'" , this . methodName , this . resourceName ) ; } catch ( final SecurityException e ) { EventDefinition . LOG . error ( "security wrong: '{}'" , this . resourceName , e ) ; } catch ( final IllegalArgumentException e ) { EventDefinition . LOG . error ( "arguments invalid : '{}'- '{}'" , this . resourceName , this . methodName , e ) ; } catch ( final IllegalAccessException e ) { EventDefinition . LOG . error ( "could not access class: '{}'" , this . resourceName , e ) ; } catch ( final InvocationTargetException e ) { EventDefinition . LOG . error ( "could not invoke method: '{}' in class: '{}'" , this . methodName , this . resourceName , e ) ; throw ( EFapsException ) e . getCause ( ) ; } catch ( final ClassNotFoundException e ) { EventDefinition . LOG . error ( "class not found: '{}" + this . resourceName , e ) ; } catch ( final NoSuchMethodException e ) { EventDefinition . LOG . error ( "could not find method: '{}' in class '{}'" , new Object [ ] { this . methodName , this . resourceName , e } ) ; } catch ( final InstantiationException e ) { EventDefinition . LOG . error ( "could not instantiat Class: '{}'" , this . resourceName , e ) ; } return ret ; }
Method to execute the esjp .