//
// ========================================================================
-// Copyright (c) 1995-2014 Mort Bay Consulting Pty. Ltd.
+// Copyright (c) 1995-2016 Mort Bay Consulting Pty. Ltd.
// ------------------------------------------------------------------------
// All rights reserved. This program and the accompanying materials
// are made available under the terms of the Eclipse Public License v1.0
_thread.unhook();
}
+ /* ------------------------------------------------------------ */
+ public static synchronized boolean isRegistered(LifeCycle lifeCycle)
+ {
+ return _thread._lifeCycles.contains(lifeCycle);
+ }
+
/* ------------------------------------------------------------ */
@Override
public void run()
lifeCycle.stop();
LOG.debug("Stopped {}",lifeCycle);
}
-
+
if (lifeCycle instanceof Destroyable)
{
((Destroyable)lifeCycle).destroy();