Skip to content

nuun-io/kernel-listener

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 

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