/** * {@inheritDoc} */ public void init() throws Exception { super.init(); // Load the script java.io.InputStream is=Thread.currentThread().getContextClassLoader().getResourceAsStream(_script); if (is == null) { throw new Exception("Unable to locate MVEL script '"+_script+"'"); } else { byte[] b=new byte[is.available()]; is.read(b); is.close(); // Compile expression _scriptExpression = MVEL.compileExpression(new String(b)); if (LOG.isLoggable(Level.FINE)) { LOG.fine("Initialized script="+_script +" compiled="+_scriptExpression); } } _context = new DefaultEPContext(getServices(), getParameters()); }
+"' on MVEL Event Processor '"+getScript() +"'");