Class AbstractOrionStandaloneLocalConfiguration

    • Field Detail

      • XML_PARENT_OF_RESOURCES

        public static final String XML_PARENT_OF_RESOURCES
        Where elements for resources will be inserted. This expression evaluates to: "//data-sources"
        See Also:
        Constant Field Values
    • Constructor Detail

      • AbstractOrionStandaloneLocalConfiguration

        public AbstractOrionStandaloneLocalConfiguration​(String dir)
        construct the instance and set the rmi port.
        Parameters:
        dir - - home of this configuration
    • Method Detail

      • getOrCreateResourceConfigurationFile

        protected String getOrCreateResourceConfigurationFile​(Resource resource,
                                                              LocalContainer container)
        note that this file could hold other configuration besides Resources. This implementation throws an UnsupportedOperationException as Resource configuration is not supported in Orion.
        Specified by:
        getOrCreateResourceConfigurationFile in class AbstractStandaloneLocalConfigurationWithXMLConfigurationBuilder
        Parameters:
        resource - the Resource configuration you wish to install on the container.
        container - the container whose configuration you wish to affect.
        Returns:
        the file that holds Resource configuration.
      • getXpathForResourcesParent

        protected String getXpathForResourcesParent()
        Resource entries must be stored in the xml configuration file. Under which element do we insert the entries? example: //Engine/DefaultContext This implementation throws an UnsupportedOperationException as Resource configuration is not supported in Orion.
        Specified by:
        getXpathForResourcesParent in class AbstractStandaloneLocalConfigurationWithXMLConfigurationBuilder
        Returns:
        path the the parent element Resources should be inserted under.
      • copyCustomResources

        protected abstract void copyCustomResources​(String confDir,
                                                    org.apache.tools.ant.types.FilterChain filterChain)
                                             throws Exception
        Copy resources that are different between the different standalone implementations.
        Parameters:
        confDir - the configuration dir where to copy the resources to
        filterChain - the Ant filter chain to apply when copying the resources
        Throws:
        Exception - in case of an error during the copy
      • getUserToken

        protected String getUserToken()
        Returns:
        an Ant filter token containing all the user-defined users
      • getRoleToken

        protected String getRoleToken()
        Returns:
        an Ant filter token containing all the role-defined roles