public void stopService() { NameRegistrar.unregister (uri); } public void out (Object key, Object value) {
@Override protected void destroyService() { NameRegistrar.unregister (PREFIX + getName()); } public static Configuration getConfiguration (String name)
@Override protected void destroyService() { NameRegistrar.unregister (XML_PREFIX + getName()); } /**
/** * destroy logger */ public void destroy () { NameRegistrar.unregister (NRPREFIX+name); removeAllListeners (); } /**
@Override public void destroyService () { NameRegistrar.unregister (getName()); NameRegistrar.unregister ("server." + getName()); }
protected void destroyService () throws Exception { NameRegistrar.unregister (getName ()); } }
public void destroyService() { NameRegistrar.unregister(getName()); }
public void stopService() { NameRegistrar.unregister(getName()); }
protected void stopService() { NameRegistrar.unregister(getName()); }
public void destroyService () { NameRegistrar.unregister ("mux."+getName ()); }
protected void stopService () throws Exception { if (rs != null) rs.close(); NameRegistrar.unregister (rspaceUri); } }
@Override protected void stopService() { if (initializerThread != null) { initializerThread.interrupt(); NameRegistrar.unregister(getName()); if (cf != null && cf.channel() != null) cf.channel().close(); } }
protected void stopService() throws SchedulerException { NameRegistrar.unregister(getName()); scheduler.shutdown(true); } protected void destroyService() {
protected void stopService () throws Exception { NameRegistrar.unregister (getName ()); if (task instanceof Destroyable) ((Destroyable)task).destroy (); } public Object getObject () {
@After public void tearDown() { NameRegistrar.unregister("test1"); NameRegistrar.unregister("test2"); }
public void stopService () { NameRegistrar.unregister (getName()); if (ui != null) ui.dispose (); } public Object newInstance (String clazz) throws Exception {
public void stop() { super.stop(); NameRegistrar.unregister("QBeanFactory." + getName()); } // Support methods for bean life cycle
@Test public void testUnregisterUnknownKeyDoesNotThrowException() throws Exception { NameRegistrar.unregister("unknownKey"); }
public void setConfiguration(Configuration cfg) throws ConfigurationException { maxSize = cfg.getInt ("size", DEFAULT_SIZE); if (name != null) NameRegistrar.unregister (name); name = cfg.get ("name", null); if (name != null) NameRegistrar.register (name, this); } public void addListener (final LogListener listener) {
@Test(expected = NameRegistrar.NotFoundException.class) public void testUnregister() throws Exception { NameRegistrar.register("test3", "someTest3Value"); assertThat(NameRegistrar.get("test3"), is("someTest3Value")); NameRegistrar.unregister("test3"); NameRegistrar.get("test3"); }