Package org.geotools.factory

Examples of org.geotools.factory.FactoryIteratorProvider


    public void setUp() throws Exception {
        factory = new BeanProcessFactory();

        // check SPI will see the factory if we register it using an iterator
        // provider
        GeoTools.addFactoryIteratorProvider(new FactoryIteratorProvider() {

            public <T> Iterator<T> iterator(Class<T> category) {
                if (ProcessFactory.class.isAssignableFrom(category)) {
                    return (Iterator<T>) Collections.singletonList(factory).iterator();
                } else {
View Full Code Here


   
    @Test
    public void testAddCustomProcess() {
        assertNull(Processors.createProcess(new NameImpl("vec", "Custom")));
       
        FactoryIteratorProvider p = new FactoryIteratorProvider() {
            @Override
            public <T> Iterator<T> iterator(Class<T> category) {
                if (category == VectorProcess.class) {
                    return (Iterator<T>) Arrays.asList(new CustomProcess()).iterator();
                }
View Full Code Here

    static FactoryIteratorProvider ffIteratorProvider;
   
    @BeforeClass
    public static void setUp() {
        ffIteratorProvider = new FactoryIteratorProvider() {
           
            public <T> Iterator<T> iterator(Class<T> category) {
               
                if (FunctionFactory.class == category) {
                     List<FunctionFactory> l = new ArrayList<FunctionFactory>();
View Full Code Here

    @Test
    public void testAddCustomProcess() {
        assertNull(Processors.createProcess(new NameImpl("ras", "Custom")));
       
        FactoryIteratorProvider p = new FactoryIteratorProvider() {
            @Override
            public <T> Iterator<T> iterator(Class<T> category) {
                if (category == RasterProcess.class) {
                    return (Iterator<T>) Arrays.asList(new CustomProcess()).iterator();
                }
View Full Code Here

    public SpringBeanProcessFactory(String title, String namespace, Class markerInterface) {
        super(new SimpleInternationalString(title), namespace);
        this.markerInterface = markerInterface;

        // create an iterator that will register this factory into SPI
        iterator = new FactoryIteratorProvider() {

            public <T> Iterator<T> iterator(Class<T> category) {
                if (ProcessFactory.class.isAssignableFrom(category)) {
                    return (Iterator<T>) Collections.singletonList(SpringBeanProcessFactory.this)
                            .iterator();
View Full Code Here

  protected void setUp() throws Exception {
    factory = new BeanProcessFactory();

    // check SPI will see the factory if we register it using an iterator
    // provider
    GeoTools.addFactoryIteratorProvider(new FactoryIteratorProvider() {

      public <T> Iterator<T> iterator(Class<T> category) {
        if (ProcessFactory.class.isAssignableFrom(category)) {
          return (Iterator<T>) Collections.singletonList(factory)
              .iterator();
View Full Code Here

    public SpringBeanProcessFactory(String title, String namespace, Class markerInterface) {
        super(new SimpleInternationalString(title), namespace);
        this.markerInterface = markerInterface;

        // create an iterator that will register this factory into SPI
        iterator = new FactoryIteratorProvider() {

            public <T> Iterator<T> iterator(Class<T> category) {
                if (ProcessFactory.class.isAssignableFrom(category)) {
                    return (Iterator<T>) Collections.singletonList(SpringBeanProcessFactory.this)
                            .iterator();
View Full Code Here

      public void setUp() throws Exception {
    factory = new BeanProcessFactory();

    // check SPI will see the factory if we register it using an iterator
    // provider
    GeoTools.addFactoryIteratorProvider(new FactoryIteratorProvider() {

      public <T> Iterator<T> iterator(Class<T> category) {
        if (ProcessFactory.class.isAssignableFrom(category)) {
          return (Iterator<T>) Collections.singletonList(factory)
              .iterator();
View Full Code Here

TOP

Related Classes of org.geotools.factory.FactoryIteratorProvider

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.