Startup event listener for a Host that configures the properties of that Host, and the associated defined contexts.
| 70 | * contexts. |
| 71 | */ |
| 72 | public class HostConfig implements LifecycleListener { |
| 73 | |
| 74 | /** |
| 75 | * Constructs a new HostConfig. |
| 76 | */ |
| 77 | public HostConfig() { |
| 78 | } |
| 79 | |
| 80 | private static final Log log = LogFactory.getLog(HostConfig.class); |
| 81 | |
| 82 | /** |
| 83 | * The string resources for this package. |
| 84 | */ |
| 85 | protected static final StringManager sm = StringManager.getManager(HostConfig.class); |
| 86 | |
| 87 | /** |
| 88 | * The resolution, in milliseconds, of file modification times. |
| 89 | */ |
| 90 | protected static final long FILE_MODIFICATION_RESOLUTION_MS = 1000; |
| 91 | |
| 92 | |
| 93 | // ----------------------------------------------------- Instance Variables |
| 94 | |
| 95 | /** |
| 96 | * The Java class name of the Context implementation we should use. |
| 97 | */ |
| 98 | protected String contextClass = "org.apache.catalina.core.StandardContext"; |
| 99 | |
| 100 | |
| 101 | /** |
| 102 | * The Host we are associated with. |
| 103 | */ |
| 104 | protected Host host = null; |
| 105 | |
| 106 | |
| 107 | /** |
| 108 | * The JMX ObjectName of this component. |
| 109 | */ |
| 110 | protected ObjectName oname = null; |
| 111 | |
| 112 | |
| 113 | /** |
| 114 | * Should we deploy XML Context config files packaged with WAR files and directories? |
| 115 | */ |
| 116 | protected boolean deployXML = false; |
| 117 | |
| 118 | |
| 119 | /** |
| 120 | * Should XML files be copied to $CATALINA_BASE/conf/<engine>/<host> by default when a web application |
| 121 | * is deployed? |
| 122 | */ |
| 123 | protected boolean copyXML = false; |
| 124 | |
| 125 | |
| 126 | /** |
| 127 | * Should we unpack WAR files when auto-deploying applications in the <code>appBase</code> directory? |
| 128 | */ |
| 129 | protected boolean unpackWARs = false; |
nothing calls this directly
no test coverage detected