Package org.geotools.factory

Examples of org.geotools.factory.FactoryCreator


     * Returns the service registry. The registry will be created the first time this method is
     * invoked.
     */
    private static FactoryRegistry getServiceRegistry() {       
        if (registry == null) {
            registry = new FactoryCreator(Arrays.asList(new Class<?>[] { DXFWriter.class }));
        }
        return registry;
    }
View Full Code Here


     * invoked.
     */
    private static FactoryRegistry getServiceRegistry() {
        assert Thread.holdsLock(CoverageIO.class);
        if (REGISTRY == null) {
            REGISTRY = new FactoryCreator(Arrays.asList(new Class<?>[] { Driver.class }));
        }
        return REGISTRY;
    }
View Full Code Here

   * this method is invoked.
   */
  private static FactoryRegistry getServiceRegistry() {
    assert Thread.holdsLock(PropertiesCollectorFinder.class);
    if (registry == null) {
      registry = new FactoryCreator(Arrays.asList(new Class<?>[] { PropertiesCollectorSPI.class }));
    }
    return registry;
  }
View Full Code Here

         * creation may queries ReferencingFactoryFinder, and some implementations managed by
         * ReferencingFactoryFinder may ask for a ReferencingFactoryContainer in turn.
         */
        synchronized (ReferencingFactoryFinder.class) {
            if (cache == null) {
                cache = new FactoryCreator(Arrays.asList(new Class<?>[] {
                        ReferencingFactoryContainer.class
                }));
                cache.registerServiceProvider(new ReferencingFactoryContainer(null),
                        ReferencingFactoryContainer.class);
            }
View Full Code Here

   
    private static FactoryRegistry getServiceRegistry() {
        assert Thread.holdsLock(ExampleFinder.class);
        if (registry == null) {
            Class<?> categories[] = new Class<?>[] { FunctionFactory.class };
            registry = new FactoryCreator( categories);
        }
        return registry;
    }
View Full Code Here

   * this method is invoked.
   */
  private static FactoryRegistry getServiceRegistry() {
    assert Thread.holdsLock(GridFormatFinder.class);
    if (registry == null) {
      registry = new FactoryCreator(Arrays
          .asList(new Class<?>[] { GridFormatFactorySpi.class }));
    }
    return registry;
  }
View Full Code Here

     * this method is invoked.
     */
    private static FactoryRegistry getServiceRegistry() {
        assert Thread.holdsLock(DynamicSymbolFactoryFinder.class);
        if (registry == null) {
            registry = new FactoryCreator(Arrays.asList(new Class<?>[] { MarkFactory.class,
                    ExternalGraphicFactory.class }));
        }
        return registry;
    }
View Full Code Here

     * time this method is invoked.
     */
    private static FactoryRegistry getServiceRegistry() {
        assert Thread.holdsLock(JTSFactoryFinder.class);
        if (registry == null) {
            registry = new FactoryCreator(Arrays.asList(new Class<?>[] { GeometryFactory.class } ));
            registry.registerServiceProvider( new GeometryFactory(), GeometryFactory.class );
        }
        return registry;
    }
View Full Code Here

   * this method is invoked.
   */
  private static FactoryRegistry getServiceRegistry() {
    assert Thread.holdsLock(DataStoreFinder.class);
    if (registry == null) {
      registry = new FactoryCreator(Arrays
          .asList(new Class<?>[] { DataStoreFactorySpi.class }));
    }
    return registry;
  }
View Full Code Here

     * this method is invoked.
     */
    private static FactoryRegistry getServiceRegistry() {
        assert Thread.holdsLock(DataAccessFinder.class);
        if (registry == null) {
            registry = new FactoryCreator(Arrays.asList(new Class<?>[] { DataAccessFactory.class }));
        }
        return registry;
    }
View Full Code Here

TOP

Related Classes of org.geotools.factory.FactoryCreator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.