com.ibm.cics.server.invocation
Enum CICSProgram.TargetType
- java.lang.Object
-
- java.lang.Enum<CICSProgram.TargetType>
-
- com.ibm.cics.server.invocation.CICSProgram.TargetType
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<CICSProgram.TargetType>
- Enclosing class:
- CICSProgram
public static enum CICSProgram.TargetType extends java.lang.Enum<CICSProgram.TargetType>
Defines the supported types of classes which can be targeted by theCICSProgram
annotation.- Since CICS TS version:
- 5.5
- Since package version:
- 1.3.0
-
-
Enum Constant Summary
Enum Constants Enum Constant and Description CDI
The target class is a CDI BeanPOJO
The target class is a Plain Old Java ObjectSPRINGBEAN
The target class is a Spring BeanUNSPECIFIED
The type of target class will be determined by the annotation processor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static CICSProgram.TargetType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CICSProgram.TargetType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
POJO
public static final CICSProgram.TargetType POJO
The target class is a Plain Old Java Object- Since CICS TS version:
- 5.3
- Since package version:
- 1.0.0
-
SPRINGBEAN
public static final CICSProgram.TargetType SPRINGBEAN
The target class is a Spring Bean- Since CICS TS version:
- 5.5
- Since package version:
- 1.3.0
-
CDI
public static final CICSProgram.TargetType CDI
The target class is a CDI Bean- Since CICS TS version:
- 6.1
- Since package version:
- 1.500.0
-
UNSPECIFIED
public static final CICSProgram.TargetType UNSPECIFIED
The type of target class will be determined by the annotation processor. If the class has the @Component annotation or any specialization of @Component (e.g. @Service, @Repository, @Controller) then SPRINGBEAN is used. If the class has the @Qualifier annotation or any specialization (e.g. @Named) then CDI is used. Otherwise, POJO is used.
-
-
Method Detail
-
values
public static CICSProgram.TargetType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CICSProgram.TargetType c : CICSProgram.TargetType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CICSProgram.TargetType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-