|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.container.AbstractStartable
public abstract class AbstractStartable
An abstract base class for Startable
s, which implements lifecycle logic, and handles automatic start up
and shutdown within Spring.
Constructor Summary | |
---|---|
AbstractStartable()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
|
void |
destroy()
|
boolean |
isActive()
Indicates whether this is currently active. |
protected void |
onStart()
Override to perform startup initialisation. |
protected void |
onStop()
Override to perform shutdown cleanup. |
protected abstract void |
runCycle()
Perform a single cycle of processing. |
void |
start()
Start the component |
void |
stop()
Stop the component and clean up any resources |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractStartable()
Method Detail |
---|
public final void start() throws java.lang.Exception
Startable
start
in interface Startable
java.lang.Exception
- A generic failureprotected void onStart() throws java.lang.Exception
Override to perform startup initialisation.
java.lang.Exception
public final void stop() throws java.lang.Exception
Startable
stop
in interface Startable
java.lang.Exception
- A generic failureprotected void onStop() throws java.lang.Exception
Override to perform shutdown cleanup.
java.lang.Exception
public final boolean isActive()
Startable
Indicates whether this is currently active.
isActive
in interface Startable
true
if this is active, false
otherwise.public final void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
java.lang.Exception
public final void destroy() throws java.lang.Exception
destroy
in interface org.springframework.beans.factory.DisposableBean
java.lang.Exception
protected abstract void runCycle()
Perform a single cycle of processing.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |