Skip to content
This repository has been archived by the owner on Aug 8, 2018. It is now read-only.

Annotation Plugins #1

Open
5 tasks
jamierocks opened this issue Oct 5, 2016 · 0 comments
Open
5 tasks

Annotation Plugins #1

jamierocks opened this issue Oct 5, 2016 · 0 comments
Assignees

Comments

@jamierocks
Copy link
Member

jamierocks commented Oct 5, 2016

package org.neptunepowered.testplugin;

import com.google.inject.Inject;
import net.canarymod.logger.Logman;
import org.neptunepowered.lib.plugin.Plugin;

@Plugin(name = "TestPlugin")
public class TestPlugin {

    @Inject private Logman logman;

    @Plugin.Enable
    public void onEnable() {
        this.logman.info("Hello, World!");
    }

}

Preface

The idea is that ultimately a Annotation Processor that will take the above plugin class, create a Neptune.inf and load plugins correctly using Guice.

Progress

  • Annotation Processor
    • Generate Neptune.inf
  • Plugin Loading
@jamierocks jamierocks self-assigned this Oct 5, 2016
@jamierocks jamierocks modified the milestone: 1.3.0 Oct 5, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant