domino.java.capsule.Capsule Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of domino-java Show documentation
Show all versions of domino-java Show documentation
A lightweight Java library for writing elegant OSGi bundle activators
package domino.java.capsule;
/**
* A capsule represents something which is startable and stoppable.
*
* After being started and before being stopped, the capsule is active.
* Otherwise, it's inactive.
*/
public interface Capsule {
/**
* Starts the capsule.
* After that, the capsule is active.
*/
void start();
/**
* Stops the capsule.
* After that, the capsule is inactive.
*/
void stop();
}