/** * Returns the StreamSource corresponding to xslt (which should have been loaded * in {@link #initialise()}). * * @return The StreamSource */ protected StreamSource getStreamSource() throws InitialisationException { if (xslt == null) { throw new InitialisationException(CoreMessages.propertiesNotSet("xsl-file or xsl-text"), this); } else { return new StreamSource(new StringReader(xslt)); } }
@Override public void initialise() throws InitialisationException { super.initialise(); if(getReturnClass().equals(Object.class)) { throw new InitialisationException(CoreMessages.propertiesNotSet("returnClass"), this); } }
CoreMessages.propertiesNotSet(MuleProperties.MULE_METHOD_PROPERTY), this);
throw new InitialisationException(CoreMessages.propertiesNotSet("serviceClass or serviceBean"), this); throw new InitialisationException(CoreMessages.propertiesNotSet("serviceInterface"), this);
CoreMessages.propertiesNotSet("serviceClass or serviceBean"), this); CoreMessages.propertiesNotSet("serviceInterface"), this);
@Override protected void doInitialise() throws InitialisationException { // first see if we're logging notifications to an endpoint try { if (endpoint == null) { throw new InitialisationException(CoreMessages.propertiesNotSet("endpoint"), this); } if (endpoint instanceof MuleContextAware) { ((MuleContextAware) endpoint).setMuleContext(muleContext); } if (endpoint instanceof MessagingExceptionHandlerAware) { ((MessagingExceptionHandlerAware) endpoint).setMessagingExceptionHandler(new MessagingExceptionHandlerToSystemAdapter()); } if (endpoint instanceof Initialisable) { ((Initialisable) endpoint).initialise(); } } catch (Exception e) { throw new InitialisationException(e, this); } }
throw new InitialisationException(CoreMessages.propertiesNotSet("jndiName"), this);