Examples of FactoryCreator


Examples of com.sun.hk2.component.FactoryCreator

        // for each FactoryFor component, insert inhabitant for components created by the factory
        if (index.equals(FactoryFor.class.getName())) {
            FactoryFor ff = i.type().getAnnotation(FactoryFor.class);
            Class<?> targetClass = ff.value();
            FactoryCreator target = new FactoryCreator(targetClass, i, habitat, MultiMap.<String,String>emptyMap());
            habitat.add(target);
            habitat.addIndex(target, targetClass.getName(), null);
        }
       
//        System.out.println("Habitat Index Changed: " + eventType + "; " + i + "; index=" + index + "; name=" + name);
View Full Code Here

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

Examples of org.geotools.factory.FactoryCreator

     * 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

Examples of org.geotools.factory.FactoryCreator

   * 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

Examples of org.geotools.factory.FactoryCreator

         * 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

Examples of org.geotools.factory.FactoryCreator

   
    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

Examples of org.geotools.factory.FactoryCreator

   * 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

Examples of org.geotools.factory.FactoryCreator

     * 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

Examples of org.geotools.factory.FactoryCreator

     * 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

Examples of org.geotools.factory.FactoryCreator

   * 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
TOP
Copyright © 2018 www.massapi.com. 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.