public Bus getBus() { return getBus(true); }
public Bus getBus() { return getBus(true); }
public Bus getBus() { return getBus(true); }
public Bus getBus() { return getBus(true); }
/** * {@inheritDoc} */ public Bus getBus() { Bus b = super.getBus(); checkBindingFactory(b); return b; }
/** * {@inheritDoc} */ public Bus getBus() { Bus b = super.getBus(); checkBindingFactory(b); return b; }
/** * Checks if a given endpoint has been marked as private. * If yes then its address will be added to a bus list property * Note that client factories might also check the endpoint, ex, * if the endpoint if private then it is likely no service contract * will be available if requested from the remote address hence it has to * be availbale locally or generated from the local source * @param ep endpoint */ @SuppressWarnings("unchecked") protected boolean checkPrivateEndpoint(Endpoint ep) { if (PropertyUtils.isTrue(ep.get(PRIVATE_ENDPOINT))) { List<String> addresses = (List<String>)getBus().getProperty(PRIVATE_ENDPOINTS); if (addresses == null) { addresses = new LinkedList<>(); } addresses.add(getAddress()); bus.setProperty(PRIVATE_ENDPOINTS, addresses); return true; } return false; } /**
/** * Checks if a given endpoint has been marked as private. * If yes then its address will be added to a bus list property * Note that client factories might also check the endpoint, ex, * if the endpoint if private then it is likely no service contract * will be available if requested from the remote address hence it has to * be availbale locally or generated from the local source * @param ep endpoint */ @SuppressWarnings("unchecked") protected boolean checkPrivateEndpoint(Endpoint ep) { if (MessageUtils.isTrue(ep.get(PRIVATE_ENDPOINT))) { List<String> addresses = (List<String>)getBus().getProperty(PRIVATE_ENDPOINTS); if (addresses == null) { addresses = new LinkedList<String>(); } addresses.add(getAddress()); bus.setProperty(PRIVATE_ENDPOINTS, addresses); return true; } return false; } /**
/** * Checks if a given endpoint has been marked as private. * If yes then its address will be added to a bus list property * Note that client factories might also check the endpoint, ex, * if the endpoint if private then it is likely no service contract * will be available if requested from the remote address hence it has to * be availbale locally or generated from the local source * @param ep endpoint */ @SuppressWarnings("unchecked") protected boolean checkPrivateEndpoint(Endpoint ep) { if (PropertyUtils.isTrue(ep.get(PRIVATE_ENDPOINT))) { List<String> addresses = (List<String>)getBus().getProperty(PRIVATE_ENDPOINTS); if (addresses == null) { addresses = new LinkedList<>(); } addresses.add(getAddress()); bus.setProperty(PRIVATE_ENDPOINTS, addresses); return true; } return false; } /**
/** * Checks if a given endpoint has been marked as private. * If yes then its address will be added to a bus list property * Note that client factories might also check the endpoint, ex, * if the endpoint if private then it is likely no service contract * will be available if requested from the remote address hence it has to * be availbale locally or generated from the local source * @param ep endpoint */ @SuppressWarnings("unchecked") protected boolean checkPrivateEndpoint(Endpoint ep) { if (MessageUtils.isTrue(ep.get(PRIVATE_ENDPOINT))) { List<String> addresses = (List<String>)getBus().getProperty(PRIVATE_ENDPOINTS); if (addresses == null) { addresses = new LinkedList<String>(); } addresses.add(getAddress()); bus.setProperty(PRIVATE_ENDPOINTS, addresses); return true; } return false; } /**