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

  • Reading from database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • getSupportFragmentManager (FragmentActivity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Notification (javax.management)
  • JList (javax.swing)
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • 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