Class StartupFinder

    • Method Detail

      • reset

        public static void reset()
        Force re initialization next time
      • isStartup

        public boolean isStartup​(QName name)
        Check whether an element with the given qualified name defines a startup.
        Parameters:
        name - to be identified whether it is a startup or not
        Returns:
        true if there is a startup registered with the factory map in the name, false if not
      • getStartup

        public Startup getStartup​(org.apache.axiom.om.OMElement element,
                                  Properties properties)
        This method returns a Processor given an OMElement. This will be used recursively by the elements which contain processor elements themselves (e.g. rules)
        Parameters:
        element - configuration for creating the startup
        properties - bag of properties with additional information
        Returns:
        Processor
      • serializeStartup

        public org.apache.axiom.om.OMElement serializeStartup​(org.apache.axiom.om.OMElement parent,
                                                              Startup startup)
        This method will serialize the config using the supplied QName (looking up the right class to do it)
        Parameters:
        parent - - Parent OMElement to which the created element will be added if not null
        startup - - Startup to be serialized
        Returns:
        OMElement startup
      • getObjectFromOMNode

        public Startup getObjectFromOMNode​(org.apache.axiom.om.OMNode om,
                                           Properties properties)
        Allow the startup finder to act as an XMLToObjectMapper for Startup (i.e. Startup) loaded dynamically from a Registry
        Specified by:
        getObjectFromOMNode in interface XMLToObjectMapper
        Parameters:
        om - to build the startup object
        properties - bag of properties with additional information
        Returns:
        startup created