Examples of FooService


Examples of org.apache.felix.ipojo.test.scenarios.service.dependency.service.FooService

        assertEquals("check dict bind callback invocation -1", ((Integer)props.get("dictB")).intValue(), 0);
        assertEquals("check dict unbind callback invocation -1", ((Integer)props.get("dictU")).intValue(), 0);
        assertEquals("check modify -1 (" + ((Integer)props.get("modified")).intValue() + ")", ((Integer)props.get("modified")).intValue(), 1);

        ServiceReference ref = Utils.getServiceReferenceByName(getContext(), FooService.class.getName(), fooProvider.getInstanceName());
        FooService fs = (FooService) getContext().getService(ref);
       
        fs.foo(); // Update
       
        props = cs.getProps();
        //Check properties
        assertEquals("check modify -1.1", ((Integer)props.get("modified")).intValue(), 3);
       
View Full Code Here

Examples of org.apache.felix.ipojo.test.scenarios.service.dependency.service.FooService

            assertEquals("check dict bind callback invocation -1", ((Integer)props.get("dictB")).intValue(), 1);
            assertEquals("check dict unbind callback invocation -1", ((Integer)props.get("dictU")).intValue(), 0);
            assertEquals("check modify -1 (" + ((Integer)props.get("modified")).intValue() + ")", ((Integer)props.get("modified")).intValue(), 1);

            ServiceReference ref = Utils.getServiceReferenceByName(getContext(), FooService.class.getName(), fooProvider.getInstanceName());
            FooService fs = (FooService) getContext().getService(ref);
           
            fs.foo(); // Update
           
            props = cs.getProps();
            //Check properties
            assertEquals("check modify -1.1", ((Integer)props.get("modified")).intValue(), 3);
           
View Full Code Here

Examples of org.apache.felix.ipojo.test.scenarios.temporal.service.FooService

        //Use a local variable to avoid to wait at each access.
        Collection col = fs;
        if (col  != null) {
            Iterator it = col.iterator();
            while (it.hasNext()) {
                FooService svc =  (FooService) it.next();
                result = result && svc.foo();
            }
        }       
        return result;
    }
View Full Code Here

Examples of org.apache.felix.ipojo.test.scenarios.temporal.service.FooService

    }

    public Properties getProps() {
        Iterator it = fs.iterator();
        if (it.hasNext()) {
            FooService svc = (FooService) it.next();
            return svc.fooProps();
        }
        return null;
    }
View Full Code Here

Examples of org.apache.felix.ipojo.test.scenarios.temporal.service.FooService

        //Use a local variable to avoid to wait at each access.
        Collection col = fs;
        if (col  != null) {
            Iterator it = col.iterator(); // Get the cached copy
            while (it != null && it.hasNext()) {
                FooService svc =  (FooService) it.next();
                result = result && svc.foo();
            }
        }       
        return result;
    }
View Full Code Here

Examples of org.apache.felix.ipojo.test.scenarios.temporal.service.FooService

    }

    public Properties getProps() {
        Iterator it = fs.iterator();
        if (it.hasNext()) {
            FooService svc = (FooService) it.next();
            return svc.fooProps();
        }
        return null;
    }
View Full Code Here

Examples of org.knopflerfish.service.foo.FooService

  public Object addingService(ServiceReference reference) {
    serviceAdded = true;
    System.out.println("Adding reference = " + reference);

    FooService fooService = (FooService)context.getService(reference);
    fooService.foo();
    return fooService;
  }
View Full Code Here

Examples of org.knopflerfish.service.foo.FooService

  public Object addingService(ServiceReference reference) {
    serviceAdded = true;
    System.out.println("SL3: Adding reference = " + reference);

    FooService fooService = (FooService)context.getService(reference);
    fooService.foo();
    return fooService;
  }
View Full Code Here

Examples of org.mybatis.spring.sample.service.FooService

      return mapperFactoryBean.getObject();
    }
   
    @Bean
    public FooService fooService() throws Exception {
      FooService fooService = new FooService();
      fooService.setUserDao(userDao());
      return fooService;
    }
View Full Code Here

Examples of org.springframework.data.redis.cache.TransactionalRedisCacheManagerTestBase.FooService

      return template;
    }

    @Bean
    public FooService fooService() {
      return new FooService();
    }
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.