Skip to content

nuun-io/kernel-listener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kernel-listener Build status

KernelListener is a kernel extension allowing plugins to listen kernel events.

Integration

With Maven, add the following dependency to your pom.xml:

<dependency>
    <groupId>io.nuun</groupId>
    <artifactId>kernel-listener</artifactId>
    <version>???</version>
</dependency>

Where ??? is the current version of the extension.

Usage

To make your plugin aware of the kernel life cycle, do it implement the KernelListener interface.

public class MyExtendedPlugin extends AbstractPlugin implements KernelListener {

    @Override
    public String name() {
        return "my-extended-plugin";
    }

    @Override
    public void kernelInitializing() {
        ...
    }

    @Override
    public void kernelInitialized() {
        ...
    }

    @Override
    public void kernelStarting() {
        ...
    }

    @Override
    public void kernelStarted() {
        ...
    }

    @Override
    public void kernelStopping() {
        ...
    }

    @Override
    public void kernelStopped() {
        ...
    }
}

About

Kernel Extension allowing plugins to listen kernel events

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages