Class Tomcat10x11xConfigurationBuilder

  • All Implemented Interfaces:

    public class Tomcat10x11xConfigurationBuilder
    extends Tomcat8x9xConfigurationBuilder
    Constructs xml elements needed to configure DataSource for Tomcat 10.x onwards. Note that this implementation converts DataSources into Resources and then uses an appropriate ConfigurationBuilder to create the configuration.
    • Field Detail


        public static final String[] JAKARTA_PACKAGES
        javax. packages which have been moved to jakarta. instead and are use by Tomcat resources.
    • Method Detail

      • toConfigurationEntry

        public String toConfigurationEntry​(Resource resource)
        Detects the type of the Resource and creates an appropriate configuration. in Tomcat 5-6.x, Resources are elements where all configuration are attributes. in Tomcat 10.x, all packages moved from Java EE to Jakarta EE.
        Specified by:
        toConfigurationEntry in interface ConfigurationBuilder
        toConfigurationEntry in class Tomcat5x6x7xConfigurationBuilder
        resource - the Resource you wish to build a configuration entry for.
        the container-specific representation of this configuration.