Examples of OsgiServiceRegistrationListenerAdapter


Examples of org.springframework.osgi.config.internal.adapter.OsgiServiceRegistrationListenerAdapter

    listener.registered(service, props);
    assertEquals(4, JustListener.REG_CALLS);
  }

  public void testListenerWithOverloadedTypesAndMultipleParameterTypes() throws Exception {
    listener = new OsgiServiceRegistrationListenerAdapter();
    listener.setTarget(new DictionaryAndMapCustomListener());
    listener.setRegistrationMethod("registered");
    listener.setUnregistrationMethod("unregistered");
    listener.setBeanFactory(createMockBF());
    listener.afterPropertiesSet();
View Full Code Here

Examples of org.springframework.osgi.config.internal.adapter.OsgiServiceRegistrationListenerAdapter

    assertEquals(1, JustListener.REG_CALLS);
    assertEquals("only one unregistered method should be called", 1, JustListener.UNREG_CALLS);
  }

  public void testJustCustomRegMethod() throws Exception {
    listener = new OsgiServiceRegistrationListenerAdapter();
    listener.setTarget(new JustReg());
    listener.setRegistrationMethod("myReg");
    listener.setBeanFactory(createMockBF());
    listener.afterPropertiesSet();
    Object service = new Object();
View Full Code Here

Examples of org.springframework.osgi.config.internal.adapter.OsgiServiceRegistrationListenerAdapter

    assertEquals(1, JustListener.REG_CALLS);
    assertEquals(0, JustListener.UNREG_CALLS);
  }

  public void testJustCustomUnregMethod() throws Exception {
    listener = new OsgiServiceRegistrationListenerAdapter();
    listener.setTarget(new JustUnreg());
    listener.setUnregistrationMethod("myUnreg");
    listener.setBeanFactory(createMockBF());
    listener.afterPropertiesSet();
    Object service = new Object();
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.