Class AbstractWildFlyScriptCommand

    • Constructor Detail

      • AbstractWildFlyScriptCommand

        public AbstractWildFlyScriptCommand​(Configuration configuration,
                                            String resourcePath)
        Sets configuration containing all needed information for building configuration scripts.
        Parameters:
        configuration - Container configuration.
        resourcePath - Path to configuration script resources.
    • Method Detail

      • getResourceJndi

        protected String getResourceJndi​(Resource resource)
        Parameters:
        resource - Resource.
        Returns:
        JNDI name corresponding to this Resource.
      • getDataSourceJndi

        protected String getDataSourceJndi​(DataSource ds)
        Parameters:
        ds - DataSource.
        Returns:
        JNDI name corresponding to this DataSource.
      • mapResourceProperties

        protected String mapResourceProperties​(Map<String,​String> resourceProperties)
        Create WildFly CLI parameter string from properties map. WildFly CLI properties usually have format " --name=value"
        Parameters:
        resourceProperties - Properties for WildFly Resource.
        Returns:
        Mapped properties.