public interface PrerequisitesChecker
The PrerequisitesChecker
must be registered in Project type's Lookup,
and can be registered for a specific packaging type. There's a special packaging pseudo-type _any,
that is included for every packaging type, and its services are run after all packaging-specific ones. So the
execution happens the following order:
/** * Registers a service provider in project's lookup, for all packaging types. */ @ProjectServiceProvider
(service=PrerequisitesChecker
.class, projectType="org-netbeans-modules-maven") public static class GeneralPrerequisiteChecker implementsPrerequisitesChecker
{ @Override
public boolean checkRunConfig(RunConfig
config) { return true; } }
/** * Registers a service provider for "jar" packaging type only. */ @ProjectServiceProvider
(service=PrerequisitesChecker
.class, projectType="org-netbeans-modules-maven/jar") public static class SpecificPrerequisiteChecker implementsPrerequisitesChecker
{ @Override
public boolean checkRunConfig(RunConfig
config) { return true; } }
/** * Registers a service fallback, which will be run after all generics and services specific for a packaging type. */ @ProjectServiceProvider
(service=PrerequisitesChecker
.class, projectType="org-netbeans-modules-maven/_any") public static class FallbackPrerequisiteChecker implementsPrerequisitesChecker
{ @Override
public boolean checkRunConfig(RunConfig
config) { return true; } }
LateBoundPrerequisitesChecker
Modifier and Type | Method and Description |
---|---|
boolean |
checkRunConfig(RunConfig config) |
boolean checkRunConfig(RunConfig config)
config
-