Package org.springframework.osgi.compendium.internal.cm

Examples of org.springframework.osgi.compendium.internal.cm.ManagedServiceInstanceTrackerPostProcessor


    return (ManagedServiceInstanceTrackerPostProcessor) appContext.getBean(ManagedServiceInstanceTrackerPostProcessor.class.getName()
        + "#0#" + beanName);
  }

  public void testSimpleBeanTrackingBpp() throws Exception {
    ManagedServiceInstanceTrackerPostProcessor bpp = getTrackerForBean("simple");
    assertEquals("simple", TestUtils.getFieldValue(bpp, "pid"));
    assertNull(TestUtils.getFieldValue(bpp, "updateMethod"));
    assertNull(TestUtils.getFieldValue(bpp, "updateStrategy"));
  }
View Full Code Here


    assertNull(TestUtils.getFieldValue(bpp, "updateMethod"));
    assertNull(TestUtils.getFieldValue(bpp, "updateStrategy"));
  }

  public void testSimpleBeanWithNoNameTrackingBpp() throws Exception {
    ManagedServiceInstanceTrackerPostProcessor bpp = getTrackerForBean("org.springframework.osgi.compendium.OneSetter#0");
    assertEquals("non-name", TestUtils.getFieldValue(bpp, "pid"));
    assertNull(TestUtils.getFieldValue(bpp, "updateMethod"));
    assertNull(TestUtils.getFieldValue(bpp, "updateStrategy"));
  }
View Full Code Here

    assertNull(TestUtils.getFieldValue(bpp, "updateMethod"));
    assertNull(TestUtils.getFieldValue(bpp, "updateStrategy"));
  }

  public void testSimpleWUpdateBeanTrackingBpp() throws Exception {
    ManagedServiceInstanceTrackerPostProcessor bpp = getTrackerForBean("simpleWUpdate");
    assertEquals("simple", TestUtils.getFieldValue(bpp, "pid"));
    assertNull(TestUtils.getFieldValue(bpp, "updateMethod"));
  }
View Full Code Here

    assertEquals("simple", TestUtils.getFieldValue(bpp, "pid"));
    assertNull(TestUtils.getFieldValue(bpp, "updateMethod"));
  }

  public void testMultipleWUpdateBeanTrackingBpp() throws Exception {
    ManagedServiceInstanceTrackerPostProcessor bpp = getTrackerForBean("multipleWUpdate");
    assertEquals("multiple", TestUtils.getFieldValue(bpp, "pid"));
    assertNull(TestUtils.getFieldValue(bpp, "updateMethod"));
    assertEquals(UpdateStrategy.CONTAINER_MANAGED, TestUtils.getFieldValue(bpp, "updateStrategy"));
  }
View Full Code Here

    assertNull(TestUtils.getFieldValue(bpp, "updateMethod"));
    assertEquals(UpdateStrategy.CONTAINER_MANAGED, TestUtils.getFieldValue(bpp, "updateStrategy"));
  }

  public void testBeanManagedTrackingBpp() throws Exception {
    ManagedServiceInstanceTrackerPostProcessor bpp = getTrackerForBean("beanManaged");
    assertEquals("bean-managed", TestUtils.getFieldValue(bpp, "pid"));
    assertEquals("update", TestUtils.getFieldValue(bpp, "updateMethod"));
    assertEquals(UpdateStrategy.BEAN_MANAGED, TestUtils.getFieldValue(bpp, "updateStrategy"));
  }
View Full Code Here

TOP

Related Classes of org.springframework.osgi.compendium.internal.cm.ManagedServiceInstanceTrackerPostProcessor

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.