/** * Returns the conduit initiator for the given namespace, constructing it * (and storing in the cache for future reference) if necessary, using its * list of factory classname to namespace mappings. * * @param namespace the namespace. */ @Override public DestinationFactory getDestinationFactory(String namespace) throws BusException { DestinationFactory factory = destinationFactories.get(namespace); if (factory == null && !failed.contains(namespace)) { factory = new TransportFinder<>(bus, destinationFactories, loaded, DestinationFactory.class) .findTransportForNamespace(namespace); } if (factory == null) { failed.add(namespace); throw new BusException(new Message("NO_DEST_FACTORY", BUNDLE, namespace)); } return factory; }
/** * Returns the conduit initiator for the given namespace, constructing it * (and storing in the cache for future reference) if necessary, using its * list of factory classname to namespace mappings. * * @param namespace the namespace. */ public ConduitInitiator getConduitInitiator(String namespace) throws BusException { ConduitInitiator factory = conduitInitiators.get(namespace); if (factory == null && !failed.contains(namespace)) { factory = new TransportFinder<>(bus, conduitInitiators, loaded, ConduitInitiator.class) .findTransportForNamespace(namespace); } if (factory == null) { failed.add(namespace); throw new BusException(new Message("NO_CONDUIT_INITIATOR", BUNDLE, namespace)); } return factory; }
/** * Returns the conduit initiator for the given namespace, constructing it * (and storing in the cache for future reference) if necessary, using its * list of factory classname to namespace mappings. * * @param namespace the namespace. */ public ConduitInitiator getConduitInitiator(String namespace) throws BusException { ConduitInitiator factory = conduitInitiators.get(namespace); if (factory == null && !failed.contains(namespace)) { factory = new TransportFinder<>(bus, conduitInitiators, loaded, ConduitInitiator.class) .findTransportForNamespace(namespace); } if (factory == null) { failed.add(namespace); throw new BusException(new Message("NO_CONDUIT_INITIATOR", BUNDLE, namespace)); } return factory; }
/** * Returns the conduit initiator for the given namespace, constructing it * (and storing in the cache for future reference) if necessary, using its * list of factory classname to namespace mappings. * * @param namespace the namespace. */ public DestinationFactory getDestinationFactory(String namespace) throws BusException { DestinationFactory factory = destinationFactories.get(namespace); if (factory == null && !failed.contains(namespace)) { factory = new TransportFinder<DestinationFactory>(bus, destinationFactories, loaded, DestinationFactory.class) .findTransportForNamespace(namespace); } if (factory == null) { failed.add(namespace); throw new BusException(new Message("NO_DEST_FACTORY", BUNDLE, namespace)); } return factory; }
/** * Returns the conduit initiator for the given namespace, constructing it * (and storing in the cache for future reference) if necessary, using its * list of factory classname to namespace mappings. * * @param namespace the namespace. */ @Override public DestinationFactory getDestinationFactory(String namespace) throws BusException { DestinationFactory factory = destinationFactories.get(namespace); if (factory == null && !failed.contains(namespace)) { factory = new TransportFinder<>(bus, destinationFactories, loaded, DestinationFactory.class) .findTransportForNamespace(namespace); } if (factory == null) { failed.add(namespace); throw new BusException(new Message("NO_DEST_FACTORY", BUNDLE, namespace)); } return factory; }
/** * Returns the conduit initiator for the given namespace, constructing it * (and storing in the cache for future reference) if necessary, using its * list of factory classname to namespace mappings. * * @param namespace the namespace. */ public DestinationFactory getDestinationFactory(String namespace) throws BusException { DestinationFactory factory = destinationFactories.get(namespace); if (factory == null && !failed.contains(namespace)) { factory = new TransportFinder<DestinationFactory>(bus, destinationFactories, loaded, DestinationFactory.class) .findTransportForNamespace(namespace); } if (factory == null) { failed.add(namespace); throw new BusException(new Message("NO_DEST_FACTORY", BUNDLE, namespace)); } return factory; }
/** * Returns the conduit initiator for the given namespace, constructing it * (and storing in the cache for future reference) if necessary, using its * list of factory classname to namespace mappings. * * @param namespace the namespace. */ public ConduitInitiator getConduitInitiator(String namespace) throws BusException { ConduitInitiator factory = conduitInitiators.get(namespace); if (factory == null && !failed.contains(namespace)) { factory = new TransportFinder<ConduitInitiator>(bus, conduitInitiators, loaded, ConduitInitiator.class) .findTransportForNamespace(namespace); } if (factory == null) { failed.add(namespace); throw new BusException(new Message("NO_CONDUIT_INITIATOR", BUNDLE, namespace)); } return factory; }
/** * Returns the conduit initiator for the given namespace, constructing it * (and storing in the cache for future reference) if necessary, using its * list of factory classname to namespace mappings. * * @param namespace the namespace. */ public ConduitInitiator getConduitInitiator(String namespace) throws BusException { ConduitInitiator factory = conduitInitiators.get(namespace); if (factory == null && !failed.contains(namespace)) { factory = new TransportFinder<ConduitInitiator>(bus, conduitInitiators, loaded, ConduitInitiator.class) .findTransportForNamespace(namespace); } if (factory == null) { failed.add(namespace); throw new BusException(new Message("NO_CONDUIT_INITIATOR", BUNDLE, namespace)); } return factory; }