public enum PackageMode extends java.lang.Enum<PackageMode>
Part.Type.CLASS
and
Part.Type.INSTANCE_CLASS
add the name of a class to the transaction name.
With the Part.packageMode()
parameter of the @Part annotation
you can control if and how package names should be added.
The default value is NONE
, so if do you not wish to add any package information, you do not have to
configure anything.
Enum Constant and Description |
---|
ABBREVIATED
Packages are appended in abbreviated mode.
|
FULL
Packages are appended in full.
|
NONE
No package information is added, just the simple class name.
|
Modifier and Type | Method and Description |
---|---|
static PackageMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PackageMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PackageMode NONE
This is the default value and does not have to be specified explicitly
public static final PackageMode ABBREVIATED
This is useful if you want to distinguish several classes with the same name in different packages.
public static final PackageMode FULL
public static PackageMode[] values()
for (PackageMode c : PackageMode.values()) System.out.println(c);
public static PackageMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is null