private void checkProgramInstance ( ) { try { if ( EventDefinition . LOG . isDebugEnabled ( ) ) { EventDefinition . LOG . debug ( "checking Instance: {} - {}" , this . resourceName , this . methodName ) ; } if ( ! EFapsClassLoader . getInstance ( ) . isOffline ( ) ) { final Class < ? > cls = Class . forName ( this . resourceName , true , EFapsClassLoader . getInstance ( ) ) ; final Method method = cls . getMethod ( this . methodName , new Class [ ] { Parameter . class } ) ; final Object progInstance = cls . newInstance ( ) ; if ( EventDefinition . LOG . isDebugEnabled ( ) ) { EventDefinition . LOG . debug ( "found Class: {} and method {}" , progInstance , method ) ; } } } catch ( final ClassNotFoundException e ) { EventDefinition . LOG . error ( "could not find Class: '{}'" , this . resourceName , e ) ; } catch ( final InstantiationException e ) { EventDefinition . LOG . error ( "could not instantiat Class: '{}'" , this . resourceName , e ) ; } catch ( final IllegalAccessException e ) { EventDefinition . LOG . error ( "could not access Class: '{}'" , this . resourceName , e ) ; } catch ( final SecurityException e ) { EventDefinition . LOG . error ( "could not access Class: '{}'" , this . resourceName , e ) ; } catch ( final NoSuchMethodException e ) { EventDefinition . LOG . error ( "could not find method: '{}' in class '{}'" , new Object [ ] { this . methodName , this . resourceName , e } ) ; } }
Method to check if the instance of the esjp is valid .