Skip to main content
Version: 5.0.0 (Unmaintained)

API Overview

Paramixel's public API is split into small packages.

PackageContents
org.paramixel.apiRunner, Configuration, Listener, Result, Status, Paramixel (nested annotations: @Factory, @Disabled, @Tag, @Tags, @Priority, @Id), AnnotationResolver, Version, ThrowingRunnable, ThrowingConsumer
org.paramixel.api.selectorSelectors — Selector, AndSelector, OrSelector, NotSelector, RegexSelector, TagRegexSelector, ClassRegexSelector, PackageRegexSelector
org.paramixel.api.actionAction model — Action, Spec, Step, Lifecycle, Sequential, Parallel, Instance, Static, Repeat, Timeout, Delay, AssertTrue, AssertFalse, Descriptor, Metadata
org.paramixel.api.exceptionTerminal/control exceptions — FailException, SkipException, AbortedException, ConfigurationException, CycleDetectedException, ResolverException, PolicyException
org.paramixel.api.supportUtilities — Retry, Retry.Policy, Retry.Result, CleanUp
org.paramixel.spi.actionCustom action SPI — ExecutionContext, Mode

Main entry points​

  • Use Runner.defaultRunner() to execute an action tree programmatically.
  • Use @Paramixel.Factory on a public static no-argument factory method for classpath discovery.
  • Use Selector to restrict discovery by package, class, or tag. Compose selectors with Selector.and(), Selector.or(), and Selector.not().
  • Use Configuration for built-in and custom paramixel.* properties.

Action model​

Actions are reusable definitions. Discovery creates a descriptor tree from those definitions. Execution updates each descriptor's Metadata with mode, status, duration, message, and throwable information.

Custom actions​

Custom actions implement Action<T> directly and use the SPI package for execution services. See Custom Actions for details.

Version​

Version provides the current Paramixel version string loaded from the classpath.

MemberDescription
Version.version()Returns the version string, or "UNKNOWN" if the version resource is missing
Version.UNKNOWNFallback constant "UNKNOWN" returned when the version resource is missing or unreadable

Functional interfaces​

InterfacePackageMethodDescription
ThrowingRunnableorg.paramixel.apivoid run() throws ThrowableA runnable that may throw a checked exception
ThrowingConsumer<T>org.paramixel.apivoid accept(T instance) throws ThrowableA consumer that accepts an instance and may throw a checked exception

These are used throughout the API: ThrowingConsumer in Step, Lifecycle.Spec, Instance.Spec, and ThrowingRunnable in Static.Spec, Retry, CleanUp.