public KeyedPoolMessageDispatcherFactoryAdapter(MessageDispatcherFactory factory) { super(); if (factory == null) { throw new IllegalArgumentException(CoreMessages.objectIsNull("factory").toString()); } this.factory = factory; }
public void initialise() throws InitialisationException { if (inboundEndpoint == null) { throw new InitialisationException(CoreMessages.objectIsNull("inboundEndpoint"), this); } if (wireFormat == null) { throw new InitialisationException(CoreMessages.objectIsNull("wireFormat"), this); } }
public static String removeExpressionMarker(String expression) { if (expression == null) { throw new IllegalArgumentException(CoreMessages.objectIsNull("expression").getMessage()); } if (expression.startsWith(DEFAULT_EXPRESSION_PREFIX)) { expression = expression.substring(2, expression.length() - 1); } return expression; }
@Override protected JAXBContext createInstance() throws Exception { if (packageNames == null) { throw new IllegalArgumentException(CoreMessages.objectIsNull("packageNames").getMessage()); } return JAXBContext.newInstance(packageNames); }
@Override protected void doStore(Serializable key, T value) throws ObjectStoreException { if (value == null) { throw new ObjectStoreException(CoreMessages.objectIsNull("value")); } map.put(key, value); }
public void setMuleContext(MuleContext context) { if (context == null) { throw new IllegalArgumentException(CoreMessages.objectIsNull("muleContext").getMessage()); } muleContext = context; }
public KeyedPoolMessageRequesterFactoryAdapter(MessageRequesterFactory factory) { super(); if (factory == null) { throw new IllegalArgumentException(CoreMessages.objectIsNull("factory").toString()); } this.factory = factory; }
protected void doInitialise() throws InitialisationException { if (address == null && !addressFromMessage) { throw new InitialisationException(CoreMessages.objectIsNull("webServiceUrl"), this); } }
public static Properties loadProperties(URL url) throws IOException { if (url == null) { Message error = CoreMessages.objectIsNull("url"); throw new IOException(error.toString()); } return loadProperties(url.openStream()); }
@Override public void initialise() throws InitialisationException { super.initialise(); if (routes == null || routes.size() == 0) { throw new InitialisationException(CoreMessages.objectIsNull("targets"), this); } }
@Override public boolean contains(Serializable key) throws ObjectStoreException { if (key == null) { throw new ObjectStoreException(CoreMessages.objectIsNull("key")); } return doContains(key); }
private void checkNull(Scheduler postProcessedScheduler) { if (postProcessedScheduler == null) { throw new SchedulerCreationException(objectIsNull("scheduler").toString()); } }
@Override public void initialise() throws InitialisationException { if (eventComparator == null) { throw new InitialisationException(CoreMessages.objectIsNull("eventComparator"), this); } super.initialise(); }
protected AbstractRegistry(String id, MuleContext muleContext) { if (id == null) { throw new MuleRuntimeException(CoreMessages.objectIsNull("RegistryID")); } this.id = id; this.muleContext = muleContext; lifecycleManager = createLifecycleManager(); }
@Override protected void doInitialise() throws InitialisationException { if (objectFactory == null) { throw new InitialisationException(CoreMessages.objectIsNull("object factory"), this); } objectFactory.initialise(); }
@Override public <T> T transformMessage(DataType<T> outputType) throws TransformerException { if (outputType == null) { throw new TransformerException(CoreMessages.objectIsNull("outputType")); } return message.getPayload(outputType); }
@Override public boolean contains(Serializable key) throws ObjectStoreException { if (key == null) { throw new ObjectStoreException(CoreMessages.objectIsNull("id")); } synchronized (store) { return store.values().contains(new StoredObject<T>(key, null)); } }
protected MuleEventContext getEventContext() { if(RequestContext.getEventContext()==null) { throw new MuleRuntimeException(CoreMessages.objectIsNull("MuleEventContext")); } else { return RequestContext.getEventContext(); } }
protected void checkKeyStore() throws ConnectException { SslConnector sslConnector = (SslConnector) connector; String keyStore = sslConnector.getKeyStore(); if (StringUtils.isBlank(keyStore)) { throw new ConnectException(CoreMessages.objectIsNull("tls-key-store"), this); } }
protected void prepareToBuildEndpoint() { // use an explicit value here to avoid caching Map<Object, Object> props = getProperties(); // this sets values used below, if they appear as properties setPropertiesFromProperties(props); if (uriBuilder == null) { throw new MuleRuntimeException(CoreMessages.objectIsNull("uriBuilder")); } uriBuilder.setMuleContext(muleContext); }