Class ExtensionFunctionDescriptor


  • public class ExtensionFunctionDescriptor
    extends java.lang.Object
    Describes an extension function that a component may call during it's lifecycle. To add support for extension functions on your component, do the following:
    1. Have your component implement the ExtensibleComponent interface.
    2. Add a List of these descriptors to your bean descriptor. In your bean info's initDesc() method, add a list of these descriptors as an additional value under the key EXTENSION_FUNCTIONS
    • Field Detail

      • EXTENSION_FUNCTIONS

        public static final java.lang.String EXTENSION_FUNCTIONS
        The key for a bean descriptor property that defines a component's list of extension functions that may be implemented.
        See Also:
        Constant Field Values
    • Method Detail

      • getMethodName

        public java.lang.String getMethodName()
      • getReturnType

        public java.lang.Class<?> getReturnType()
      • getDescription

        public java.lang.String getDescription()
      • getImplementation

        public java.lang.String getImplementation()
      • getDefaultScript

        public java.lang.String getDefaultScript()
        Generates the default script for this extension function, including a python style docstring