@Override public Set<String> getEngines() throws ChainException { return internalChain.getEngines(); }
@Override public List<String> getChainNames() throws InvalidSyntaxException { List<String> chainNames = new ArrayList<String>(); BundleContext bundleContext = context.getBundleContext(); ServiceReference[] references = bundleContext.getServiceReferences(Chain.class.getName(), null); if (references != null) { for (ServiceReference ref : references) { Chain chain = (Chain) bundleContext.getService(ref); try { if (chain.getEngines().contains(getName())) { chainNames.add(chain.getName()); } } catch (ChainException e) { // This chain is currently not active ... ignore } } } return chainNames; }
@Override public List<String> getChainNames() throws InvalidSyntaxException { List<String> chainNames = new ArrayList<String>(); BundleContext bundleContext = context.getBundleContext(); ServiceReference[] references = bundleContext.getServiceReferences(Chain.class.getName(), null); if (references != null) { for (ServiceReference ref : references) { Chain chain = (Chain) bundleContext.getService(ref); try { if (chain.getEngines().contains(getName())) { chainNames.add(chain.getName()); } } catch (ChainException e) { // This chain is currently not active ... ignore } } } return chainNames; }