Class AbstractResourcePlugin.MetaClass

java.lang.Object
build.spin.module.java.AbstractResourcePlugin.MetaClass
All Implemented Interfaces:
build.spin.Extension.MetaClass, build.spin.Plugin.MetaClass
Direct Known Subclasses:
ResourcePlugin.MetaClass
Enclosing class:
AbstractResourcePlugin

public abstract static class AbstractResourcePlugin.MetaClass extends Object implements build.spin.Plugin.MetaClass
An abstract Plugin.MetaClass for resource plugins.

Activates when a matching compiler plugin is present and the resource directory exists.

Since:
Apr-2026
Author:
reed.vonredwitz
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    isDetectedIn(build.spin.Project project)
     
    boolean
     
    protected abstract Class<? extends build.spin.Plugin>
    Returns the Plugin class whose presence is required for this resource plugin to activate.
    protected abstract String
    Returns the resource directory path, relative to the project root (e.g.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface build.spin.Extension.MetaClass

    getCommandLineClasses

    Methods inherited from interface build.spin.Plugin.MetaClass

    getExtensionClass, scheme
  • Constructor Details

    • MetaClass

      public MetaClass()
  • Method Details

    • pluginClass

      protected abstract Class<? extends build.spin.Plugin> pluginClass()
      Returns the Plugin class whose presence is required for this resource plugin to activate.
    • resourceDirectory

      protected abstract String resourceDirectory()
      Returns the resource directory path, relative to the project root (e.g. "src/main/resources").
    • isDetectedIn

      public boolean isDetectedIn(Path path)
      Specified by:
      isDetectedIn in interface build.spin.Plugin.MetaClass
    • isDetectedIn

      public boolean isDetectedIn(build.spin.Project project)
      Specified by:
      isDetectedIn in interface build.spin.Plugin.MetaClass