Tabnine Logo
Registry.getPlugins
Code IndexAdd Tabnine to your IDE (free)

How to use
getPlugins
method
in
aQute.bnd.service.Registry

Best Java code snippets using aQute.bnd.service.Registry.getPlugins (Showing top 20 results out of 315)

origin: biz.aQute.bnd/biz.aQute.bndlib

private synchronized Collection<? extends URLConnectionHandler> getURLConnectionHandlers() throws Exception {
  if (connectionHandlers.isEmpty() && registry != null) {
    List<URLConnectionHandler> connectionHandlers = registry.getPlugins(URLConnectionHandler.class);
    this.connectionHandlers.addAll(connectionHandlers);
    logger.debug("URL Connection handlers {}", connectionHandlers);
  }
  return connectionHandlers;
}
origin: biz.aQute.bnd/biz.aQute.bnd

private synchronized Collection<? extends ProxyHandler> getProxyHandlers() throws Exception {
  if (proxyHandlers.isEmpty() && registry != null) {
    List<ProxyHandler> proxyHandlers = registry.getPlugins(ProxyHandler.class);
    this.proxyHandlers.addAll(proxyHandlers);
    logger.debug("Proxy handlers {}", proxyHandlers);
  }
  return proxyHandlers;
}
origin: biz.aQute.bnd/biz.aQute.bndlib

private synchronized Collection<? extends ProxyHandler> getProxyHandlers() throws Exception {
  if (proxyHandlers.isEmpty() && registry != null) {
    List<ProxyHandler> proxyHandlers = registry.getPlugins(ProxyHandler.class);
    this.proxyHandlers.addAll(proxyHandlers);
    logger.debug("Proxy handlers {}", proxyHandlers);
  }
  return proxyHandlers;
}
origin: biz.aQute.bnd/biz.aQute.bnd

private synchronized Collection<? extends URLConnectionHandler> getURLConnectionHandlers() throws Exception {
  if (connectionHandlers.isEmpty() && registry != null) {
    List<URLConnectionHandler> connectionHandlers = registry.getPlugins(URLConnectionHandler.class);
    this.connectionHandlers.addAll(connectionHandlers);
    logger.debug("URL Connection handlers {}", connectionHandlers);
  }
  return connectionHandlers;
}
origin: biz.aQute.bnd/biz.aQute.bndlib

@Override
public void handle(URLConnection connection) throws Exception {
  for (URLConnectionHandler h : registry.getPlugins(URLConnectionHandler.class)) {
    h.handle(connection);
  }
}
origin: biz.aQute.bnd/biz.aQute.bnd

@Override
public void handle(URLConnection connection) throws Exception {
  for (URLConnectionHandler h : registry.getPlugins(URLConnectionHandler.class)) {
    h.handle(connection);
  }
}
origin: biz.aQute.bnd/bndlib

public void handle(URLConnection connection) throws Exception {
  for (URLConnectionHandler h : registry.getPlugins(URLConnectionHandler.class)) {
    h.handle(connection);
  }
}
origin: biz.aQute.bnd/biz.aQute.repository

/**
 * Notify all {@link RepositoryListenerPlugin}s that this repository is
 * updated.
 */
private void notifyRepositoryListeners() {
  registry.getPlugins(RepositoryListenerPlugin.class)
    .forEach((RepositoryListenerPlugin rp) -> rp.repositoryRefreshed(this));
}
origin: biz.aQute.bnd/biz.aQute.bnd

private InputStream createProgressWrappedStream(InputStream inputStream, String name, int size) {
  if (registry == null)
    return inputStream;
  final List<ProgressPlugin> progressPlugins = registry.getPlugins(ProgressPlugin.class);
  if (progressPlugins == null || progressPlugins.size() == 0)
    return inputStream;
  return new ProgressWrappingStream(inputStream, name, size, progressPlugins);
}
origin: biz.aQute.bnd/biz.aQute.repository

private InputStream createProgressWrappedStream(InputStream inputStream, String name, int size) {
  if (registry == null)
    return inputStream;
  final List<ProgressPlugin> progressPlugins = registry.getPlugins(ProgressPlugin.class);
  if (progressPlugins == null || progressPlugins.size() == 0)
    return inputStream;
  return new ProgressWrappingStream(inputStream, name, size, progressPlugins);
}
origin: biz.aQute/bnd

private FileRepo lookupCachedFileRepo() {
  if (registry != null) {
    List<FileRepo> repos = registry.getPlugins(FileRepo.class);
    for (FileRepo repo : repos) {
      if ("cache".equals(repo.getName()))
        return repo;
    }
  }
  return null;
}
origin: biz.aQute.bnd/biz.aQute.bnd

/**
 * Notify all {@link RepositoryListenerPlugin}s that this repository is
 * updated.
 */
private void notifyRepositoryListeners() {
  registry.getPlugins(RepositoryListenerPlugin.class)
    .forEach((RepositoryListenerPlugin rp) -> rp.repositoryRefreshed(this));
}
origin: biz.aQute.bnd/bnd

public void handle(URLConnection connection) throws Exception {
  for (URLConnectionHandler h : registry.getPlugins(URLConnectionHandler.class)) {
    h.handle(connection);
  }
}
origin: biz.aQute/bnd

protected void fireBundleAdded(Jar jar, File file) {
  if (registry == null)
    return;
  List<RepositoryListenerPlugin> listeners = registry
      .getPlugins(RepositoryListenerPlugin.class);
  for (RepositoryListenerPlugin listener : listeners) {
    try {
      listener.bundleAdded(this, jar, file);
    } catch (Exception e) {
      if (reporter != null)
        reporter.warning("Repository listener threw an unexpected exception: %s", e);
    }
  }
}
origin: biz.aQute.bnd/biz.aQute.bndlib

protected void fireBundleAdded(File file) throws Exception {
  if (registry == null)
    return;
  List<RepositoryListenerPlugin> listeners = registry.getPlugins(RepositoryListenerPlugin.class);
  if (listeners.isEmpty())
    return;
  try (Jar jar = new Jar(file)) {
    for (RepositoryListenerPlugin listener : listeners) {
      try {
        listener.bundleAdded(this, jar, file);
      } catch (Exception e) {
        if (reporter != null)
          reporter.warning("Repository listener threw an unexpected exception: %s", e);
      }
    }
  }
}
origin: biz.aQute.bnd/biz.aQute.bnd

protected void fireBundleAdded(File file) throws Exception {
  if (registry == null)
    return;
  List<RepositoryListenerPlugin> listeners = registry.getPlugins(RepositoryListenerPlugin.class);
  if (listeners.isEmpty())
    return;
  try (Jar jar = new Jar(file)) {
    for (RepositoryListenerPlugin listener : listeners) {
      try {
        listener.bundleAdded(this, jar, file);
      } catch (Exception e) {
        if (reporter != null)
          reporter.warning("Repository listener threw an unexpected exception: %s", e);
      }
    }
  }
}
origin: biz.aQute.bnd/biz.aQute.bnd

@Override
public boolean refresh() throws Exception {
  init();
  repoImpl.refresh();
  bridge = new BridgeRepository(repoImpl);
  for (RepositoryListenerPlugin listener : registry.getPlugins(RepositoryListenerPlugin.class)) {
    try {
      listener.repositoryRefreshed(this);
    } catch (Exception e) {
      reporter.exception(e, "Updating listener plugin %s", listener);
    }
  }
  return true;
}
origin: biz.aQute.bnd/biz.aQute.repository

@Override
public boolean refresh() throws Exception {
  init();
  repoImpl.refresh();
  bridge = new BridgeRepository(repoImpl);
  for (RepositoryListenerPlugin listener : registry.getPlugins(RepositoryListenerPlugin.class)) {
    try {
      listener.repositoryRefreshed(this);
    } catch (Exception e) {
      reporter.exception(e, "Updating listener plugin %s", listener);
    }
  }
  return true;
}
origin: biz.aQute.bnd/biz.aQute.bnd

@Override
public boolean refresh() throws Exception {
  init();
  if (!index.refresh()) {
    return false;
  }
  index.bridge.onResolve(() -> {
    for (RepositoryListenerPlugin listener : registry.getPlugins(RepositoryListenerPlugin.class)) {
      try {
        listener.repositoryRefreshed(this);
      } catch (Exception e) {
        reporter.exception(e, "Updating listener plugin %s", listener);
      }
    }
  });
  return true;
}
origin: biz.aQute.bnd/biz.aQute.repository

@Override
public boolean refresh() throws Exception {
  init();
  if (!index.refresh()) {
    return false;
  }
  index.bridge.onResolve(() -> {
    for (RepositoryListenerPlugin listener : registry.getPlugins(RepositoryListenerPlugin.class)) {
      try {
        listener.repositoryRefreshed(this);
      } catch (Exception e) {
        reporter.exception(e, "Updating listener plugin %s", listener);
      }
    }
  });
  return true;
}
aQute.bnd.serviceRegistrygetPlugins

Popular methods of Registry

  • getPlugin

Popular in Java

  • Updating database using SQL prepared statement
  • startActivity (Activity)
  • setContentView (Activity)
  • runOnUiThread (Activity)
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • JButton (javax.swing)
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now