create

public static ScopeType create(String name)

Creates a new Scope type, which can be used as a singleton key to identify a scope during scoped context creation or logging. Callers are expected to retain this key in a static field or return it via a static method. Scope types have singleton semantics and two scope types with the same name are NOT equivalent.

Parameters

name

a debug friendly scope identifier (e.g. "my_batch_job").