congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
FactoryRegistry.lookupProviders
Code IndexAdd Tabnine to your IDE (free)

How to use
lookupProviders
method
in
org.geotools.factory.FactoryRegistry

Best Java code snippets using org.geotools.factory.FactoryRegistry.lookupProviders (Showing top 4 results out of 315)

origin: org.geotools/gt2-main

  /**
   * This method uses the current classpath to look for instances of  {@link
   * ServiceFactory} using the factory spi mechanism.
   * <p>
   * Sublcasses should overide this method if they  wish to use a diffent plug-in mechanism.
   * </p>
   * 
   * @return A list of ServiceFactory plugins, or an empty list if none
   *         could be found.
   * 
   * @see FactoryRegistry
   */
  public List getServiceFactories() {
    Iterator f = FactoryRegistry.lookupProviders( ServiceFactory.class );
    
    ArrayList factories = new ArrayList();
    while( f.hasNext() ) factories.add( f.next() );
    
    return factories;
  }
}
origin: org.geotools/gt2-metadata

newServices |= register(lookupProviders(category, loader), category, message);
newServices |= registerFromSystemProperty(loader, category, message);
origin: org.locationtech.geogig/geogig-datastore

/**
 * Is the factory picked up from
 * {@code META-INF/services/org.geotools.filter.expression.PropertyAccessorFactory}
 */
@Test
public void testLowLevelSPI() {
  Iterator<PropertyAccessorFactory> factories;
  factories = FactoryRegistry.lookupProviders(PropertyAccessorFactory.class);
  while (factories.hasNext()) {
    PropertyAccessorFactory factory = factories.next();
    if (factory instanceof ExtraDataPropertyAccessorFactory) {
      assertTrue(true);
      return;
    }
  }
  fail(ExtraDataPropertyAccessorFactory.class.getName() + " not found");
}
origin: org.geotools/gt-metadata

newServices |= register(lookupProviders(category, loader), category, message);
newServices |= registerFromSystemProperty(loader, category, message);
org.geotools.factoryFactoryRegistrylookupProviders

Popular methods of FactoryRegistry

  • getServiceProviders
  • scanForPlugins
    Scans for factory plug-ins of the given category, with guard against recursivities. The recursivity
  • getServiceProvider
    Returns the first provider in the registry for the specified category, using the specified map of hi
  • registerServiceProvider
  • <init>
    Constructs a new registry for the specified categories.
  • debug
    Log a debug message for #getServiceProvider method. Note: we are not required to insert the method n
  • getCachedProviders
    Returns the providers available in the cache, or null if none. To be overridden by FactoryCreator on
  • getCategories
  • getClassLoaders
    Returns all class loaders to be used for scanning plugins. Current implementation returns the follow
  • getFactories
  • getLogHeader
    Prepares a message to be logged if any provider has been registered.
  • getServiceImplementation
    Search the first implementation in the registery matching the specified conditions. This method is i
  • getLogHeader,
  • getServiceImplementation,
  • getServiceProviderByClass,
  • getUnfilteredProviders,
  • isAcceptable,
  • isAvailable,
  • loadingFailure,
  • log,
  • register

Popular in Java

  • Making http requests using okhttp
  • getSystemService (Context)
  • putExtra (Intent)
  • setScale (BigDecimal)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • JFrame (javax.swing)
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top 17 Free Sublime Text Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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