@Target(value=TYPE) @Retention(value=RUNTIME) @IndexAnnotated public @interface Extension
eg:-
@Extension(
name = "customExtensionName",
namespace = "customExtensionNamespace",
description = "Description of the custom extension.",
parameters = {
@Parameter(name = "firstParameterName", type = {DataType.INT, DataType.LONG}),
@Parameter(name = "SecondParameterName", type = {DataType.STRING})
},
returnAttributes = @ReturnAttribute(type = {DataType.INT, DataType.LONG}),
examples = { @Example({"Example of the CustomExtension usage 1"}),
@Example({"Example of the CustomExtension usage 2"})}
)
public CustomExtension extends ExtensionSuperClass {
...
}
Modifier and Type | Optional Element and Description |
---|---|
String |
description |
Example[] |
examples |
String |
name |
String |
namespace |
Parameter[] |
parameters |
ReturnAttribute[] |
returnAttributes |
SystemParameter[] |
systemParameter |
public abstract String name
public abstract String namespace
public abstract String description
public abstract Parameter[] parameters
public abstract SystemParameter[] systemParameter
public abstract ReturnAttribute[] returnAttributes
public abstract Example[] examples
Copyright © 2019 WSO2. All rights reserved.