Annotation Interface ThingworxExtensionApiMethod
@Target({METHOD,CONSTRUCTOR})
@Retention(RUNTIME)
@Documented
public @interface ThingworxExtensionApiMethod
The
ThingworxExtensionApiMethod annotation is used to indicate that the current method is part of the Thingworx Extension
Development API.- See Also:
-
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionint[]Required parameter: Indicates which version of the Thingworx Platform began supporting the API. -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanOptional parameter: Indicates whether or not extension developers are permitted to override the method in extended versions of the containing class.int[]Optional parameter: When specified, indicates that the method has been deprecated for extension developers and should no longer be used for new extension development.booleanOptional parameter: Indicates where the overriding method is required to call the parent implementation (viasuper.methodName()).
-
Element Details
-
since
int[] sinceRequired parameter: Indicates which version of the Thingworx Platform began supporting the API. The version number is passed in using an array of ints, for example { 7, 0, 2 } would correspond to Thingworx 7.0.2.- Returns:
- the Thingworx Platform version, where each version component is stored at its own index
-
deprecatedSince
int[] deprecatedSinceOptional parameter: When specified, indicates that the method has been deprecated for extension developers and should no longer be used for new extension development. Existing extensions should phase out the use of the deprecated API.- Returns:
- the Thingworx Platform version, where each version component is stored at its own index
- Default:
{-1}
-
canOverride
boolean canOverrideOptional parameter: Indicates whether or not extension developers are permitted to override the method in extended versions of the containing class. By default, this attribute is set to false.- Returns:
trueorfalse
- Default:
false
-
requiresSuper
boolean requiresSuperOptional parameter: Indicates where the overriding method is required to call the parent implementation (viasuper.methodName()). By default, this attribute is set to false.- Returns:
trueorfalse
- Default:
false
-