Package net.thevpc.naru.ext.tools.plan
Class NaruPlanExtension
java.lang.Object
net.thevpc.naru.ext.tools.plan.NaruPlanExtension
- All Implemented Interfaces:
NaruSessionExtension,net.thevpc.nuts.spi.NComponent
Makes the planning feature available to the session, without the core knowing that
plans exist.
The extension owns the plan graph, contributes it to task prompts, and persists it
under the session's own ext/ folder. Removing naru-tools-plan from the
classpath removes planning entirely; nothing in naru-api or naru-impl
refers to it.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()static net.thevpc.nuts.text.NMsgstatic net.thevpc.nuts.text.NMsgcolorizePlanStatus(NaruPlanStatus status) contribute(NaruTask task) booleanisRelevant(NaruTask task) net.thevpc.nuts.util.NOptional<net.thevpc.nuts.elem.NElement>load(NaruSession session, net.thevpc.nuts.io.NPath file) name()plans()The plan graph, shared with the tools and directives of this extension.static NaruPlanManagerplans(NaruSession session) The session's plan graph, for the tools and directives of this feature.net.thevpc.nuts.elem.NElementsave(NaruSession session) sources()static StringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.thevpc.naru.api.registry.NaruSessionExtension
open, order, source
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
NaruPlanExtension
public NaruPlanExtension()
-
-
Method Details
-
name
- Specified by:
namein interfaceNaruSessionExtension
-
sources
- Specified by:
sourcesin interfaceNaruSessionExtension
-
plans
The plan graph, shared with the tools and directives of this extension. -
plans
The session's plan graph, for the tools and directives of this feature.The lookup cannot fail in practice: these tools ship in the same jar as the extension that provides the graph, and both are registered together.
-
colorizePlanStatus
-
trimStr
-
colorizePlanItemStatus
-
isRelevant
- Specified by:
isRelevantin interfaceNaruSessionExtension
-
contribute
- Specified by:
contributein interfaceNaruSessionExtension
-
load
public net.thevpc.nuts.util.NOptional<net.thevpc.nuts.elem.NElement> load(NaruSession session, net.thevpc.nuts.io.NPath file) - Specified by:
loadin interfaceNaruSessionExtension
-
save
- Specified by:
savein interfaceNaruSessionExtension
-
close
public void close()- Specified by:
closein interfaceNaruSessionExtension
-