Class VersionProvider

java.lang.Object
org.apache.juneau.rest.server.convention.VersionProvider

public class VersionProvider extends Object
Flavor-neutral version/build-metadata worker bean shared by the version @Rest flavors.

Holds the capability state (the assembled name/version/git*/buildTime/ javaVersion entry map) and the serve logic (write the map as readable JSON, format-pinned to application/json so the endpoint serves JSON even on a vanilla RestServlet host that hasn't wired up JSON serializers). The VersionMixin (mixin), VersionResource (child), and VersionServlet (servlet) flavors are independent @Rest classes that each hold a VersionProvider worker and delegate to it — so the three deployment forms cannot drift, and no flavor is another flavor's worker.

See Also:
Since:
10.0.0