Skip to content
This repository
Browse code

Merge pull request #3 from pferraro/master

MODCLUSTER-315 Convert project to use i18n logging and exceptions
  • Loading branch information...
commit 9e38c930dcd79a489c10f8e055c3d2891d388823 2 parents 088f844 + 8bdebac
Jean-Frederic Clere jfclere authored

Showing 81 changed files with 1,108 additions and 5,095 deletions. Show diff stats Hide diff stats

  1. +3 20 ...atalina-standalone/src/main/java/org/jboss/modcluster/container/catalina/standalone/ModClusterListener.java
  2. +24 0 container/catalina/src/main/java/org/jboss/modcluster/container/catalina/CatalinaConnectorFactory.java
  3. +24 0 container/catalina/src/main/java/org/jboss/modcluster/container/catalina/CatalinaContextFactory.java
  4. +24 0 container/catalina/src/main/java/org/jboss/modcluster/container/catalina/CatalinaEngineFactory.java
  5. +24 0 container/catalina/src/main/java/org/jboss/modcluster/container/catalina/CatalinaEventHandler.java
  6. +25 0 container/catalina/src/main/java/org/jboss/modcluster/container/catalina/CatalinaFactory.java
  7. +24 1 container/catalina/src/main/java/org/jboss/modcluster/container/catalina/CatalinaFactoryRegistry.java
  8. +24 0 container/catalina/src/main/java/org/jboss/modcluster/container/catalina/CatalinaHostFactory.java
  9. +24 0 container/catalina/src/main/java/org/jboss/modcluster/container/catalina/CatalinaServerFactory.java
  10. +24 0 container/catalina/src/main/java/org/jboss/modcluster/container/catalina/ConnectorFactory.java
  11. +24 0 container/catalina/src/main/java/org/jboss/modcluster/container/catalina/ContextFactory.java
  12. +24 0 container/catalina/src/main/java/org/jboss/modcluster/container/catalina/EngineFactory.java
  13. +24 0 container/catalina/src/main/java/org/jboss/modcluster/container/catalina/HostFactory.java
  14. +25 0 container/catalina/src/main/java/org/jboss/modcluster/container/catalina/JMXServerProvider.java
  15. +24 0 container/catalina/src/main/java/org/jboss/modcluster/container/catalina/LifecycleListenerFactory.java
  16. +24 0 container/catalina/src/main/java/org/jboss/modcluster/container/catalina/RequestListenerValveFactory.java
  17. +24 0 container/catalina/src/main/java/org/jboss/modcluster/container/catalina/ServerFactory.java
  18. +24 0 container/catalina/src/main/java/org/jboss/modcluster/container/catalina/ServerProvider.java
  19. +24 0 container/catalina/src/main/java/org/jboss/modcluster/container/catalina/ServiceLoaderCatalinaFactory.java
  20. +24 0 container/catalina/src/main/java/org/jboss/modcluster/container/catalina/SimpleServerProvider.java
  21. +3 0  container/jbossweb/src/main/java/org/jboss/modcluster/container/jbossweb/JBossWebConnector.java
  22. +3 0  container/jbossweb/src/main/java/org/jboss/modcluster/container/jbossweb/JBossWebConnectorFactory.java
  23. +24 0 container/jbossweb/src/main/java/org/jboss/modcluster/container/jbossweb/JBossWebContext.java
  24. +24 0 container/jbossweb/src/main/java/org/jboss/modcluster/container/jbossweb/JBossWebContextFactory.java
  25. +24 0 container/jbossweb/src/main/java/org/jboss/modcluster/container/jbossweb/JBossWebEventHandlerAdapter.java
  26. +24 0 container/jbossweb/src/main/java/org/jboss/modcluster/container/jbossweb/JBossWebLifecycleListenerFactory.java
  27. +24 0 container/tomcat6/src/main/java/org/jboss/modcluster/container/tomcat/TomcatConnector.java
  28. +3 0  container/tomcat6/src/main/java/org/jboss/modcluster/container/tomcat/TomcatConnectorFactory.java
  29. +24 0 container/tomcat6/src/main/java/org/jboss/modcluster/container/tomcat/TomcatContext.java
  30. +24 0 container/tomcat6/src/main/java/org/jboss/modcluster/container/tomcat/TomcatContextFactory.java
  31. +3 0  container/tomcat6/src/main/java/org/jboss/modcluster/container/tomcat/TomcatEventHandlerAdapter.java
  32. +3 0  container/tomcat6/src/main/java/org/jboss/modcluster/container/tomcat/TomcatLifecycleListenerFactory.java
  33. +24 0 container/tomcat7/src/main/java/org/jboss/modcluster/container/tomcat/TomcatConnector.java
  34. +24 0 container/tomcat7/src/main/java/org/jboss/modcluster/container/tomcat/TomcatConnectorFactory.java
  35. +24 0 container/tomcat7/src/main/java/org/jboss/modcluster/container/tomcat/TomcatContext.java
  36. +24 0 container/tomcat7/src/main/java/org/jboss/modcluster/container/tomcat/TomcatContextFactory.java
  37. +24 0 container/tomcat7/src/main/java/org/jboss/modcluster/container/tomcat/TomcatEventHandlerAdapter.java
  38. +3 0  container/tomcat7/src/main/java/org/jboss/modcluster/container/tomcat/TomcatLifecycleListenerFactory.java
  39. +19 0 core/pom.xml
  40. +156 0 core/src/main/java/org/jboss/modcluster/ModClusterLogger.java
  41. +52 0 core/src/main/java/org/jboss/modcluster/ModClusterMessages.java
  42. +37 46 core/src/main/java/org/jboss/modcluster/ModClusterService.java
  43. +0 83 core/src/main/java/org/jboss/modcluster/Strings.java
  44. +0 58 core/src/main/java/org/jboss/modcluster/advertise/impl/AdvertiseEventType.java
  45. +6 6 core/src/main/java/org/jboss/modcluster/advertise/impl/AdvertiseListenerImpl.java
  46. +4 11 core/src/main/java/org/jboss/modcluster/advertise/impl/MulticastSocketFactoryImpl.java
  47. +1 1  core/src/main/java/org/jboss/modcluster/load/impl/DynamicLoadBalanceFactorProvider.java
  48. +3 2 core/src/main/java/org/jboss/modcluster/load/metric/impl/AbstractLoadMetric.java
  49. +9 6 core/src/main/java/org/jboss/modcluster/mcmp/MCMPRequestType.java
  50. +37 42 core/src/main/java/org/jboss/modcluster/mcmp/impl/DefaultMCMPHandler.java
  51. +5 6 core/src/main/java/org/jboss/modcluster/mcmp/impl/JSSESocketFactory.java
  52. +0 61 core/src/test/java/org/jboss/modcluster/StringsTestCase.java
  53. +2 3 core/src/test/java/org/jboss/modcluster/advertise/MulticastSocketFactoryImplTestCase.java
  54. +2 2 demo/server/src/main/java/org/jboss/modcluster/demo/servlet/BusyConnectorsLoadServlet.java
  55. +0 67 docs/userguide/src/main/docbook/modules/java/config.xml
  56. +0 26 docs/userguide/src/main/docbook/modules/java/properties.xml
  57. +0 56 ha/pom.xml
  58. +0 34 ha/src/main/java/org/jboss/modcluster/config/ha/HAConfiguration.java
  59. +0 40 ha/src/main/java/org/jboss/modcluster/config/ha/impl/HAModClusterConfig.java
  60. +0 48 ha/src/main/java/org/jboss/modcluster/ha/ClusteredMCMPHandler.java
  61. +0 438 ha/src/main/java/org/jboss/modcluster/ha/ClusteredMCMPHandlerImpl.java
  62. +0 110 ha/src/main/java/org/jboss/modcluster/ha/ClusteredResetRequestSource.java
  63. +0 1,254 ha/src/main/java/org/jboss/modcluster/ha/HAModClusterService.java
  64. +0 68 ha/src/main/java/org/jboss/modcluster/ha/HAModClusterServiceMBean.java
  65. +0 153 ha/src/main/java/org/jboss/modcluster/ha/ModClusterServiceDRMEntry.java
  66. +0 46 ha/src/main/java/org/jboss/modcluster/ha/rpc/ClusteredMCMPHandlerRpcHandler.java
  67. +0 122 ha/src/main/java/org/jboss/modcluster/ha/rpc/DefaultRpcResponse.java
  68. +0 102 ha/src/main/java/org/jboss/modcluster/ha/rpc/MCMPServerDiscoveryEvent.java
  69. +0 52 ha/src/main/java/org/jboss/modcluster/ha/rpc/ModClusterServiceRpcHandler.java
  70. +0 72 ha/src/main/java/org/jboss/modcluster/ha/rpc/ModClusterServiceStatus.java
  71. +0 60 ha/src/main/java/org/jboss/modcluster/ha/rpc/PeerMCMPDiscoveryStatus.java
  72. +0 35 ha/src/main/java/org/jboss/modcluster/ha/rpc/ResetRequestSourceRpcHandler.java
  73. +0 35 ha/src/main/java/org/jboss/modcluster/ha/rpc/RpcResponse.java
  74. +0 49 ha/src/main/java/org/jboss/modcluster/ha/rpc/RpcResponseFilter.java
  75. +0 535 ha/src/test/java/org/jboss/modcluster/ha/ClusteredMCMPHandlerTestCase.java
  76. +0 240 ha/src/test/java/org/jboss/modcluster/ha/ClusteredResetRequestSourceTestCase.java
  77. +0 950 ha/src/test/java/org/jboss/modcluster/ha/HAModClusterServiceTestCase.java
  78. +0 126 ha/src/test/java/org/jboss/modcluster/ha/rpc/DefaultRpcResponseTestCase.java
  79. +7 16 pom.xml
  80. +0 1  src/assembly/sar.xml
  81. +1 12 src/main/resources/mod_cluster-jboss-beans.xml
23 ...lina-standalone/src/main/java/org/jboss/modcluster/container/catalina/standalone/ModClusterListener.java
@@ -43,7 +43,6 @@
43 43 import org.jboss.logging.Logger;
44 44 import org.jboss.modcluster.ModClusterService;
45 45 import org.jboss.modcluster.ModClusterServiceMBean;
46   -import org.jboss.modcluster.Strings;
47 46 import org.jboss.modcluster.config.JvmRouteFactory;
48 47 import org.jboss.modcluster.config.impl.ModClusterConfig;
49 48 import org.jboss.modcluster.container.catalina.LifecycleListenerFactory;
@@ -59,22 +58,6 @@
59 58 * @author Paul Ferraro
60 59 */
61 60 public class ModClusterListener extends ModClusterConfig implements LifecycleListener, LoadBalanceFactorProviderFactory, ModClusterServiceMBean {
62   -/*
63   - static {
64   - Logger logger = Logger.getLogger(ModClusterListener.class);
65   - // We expect to run in a JBoss Web/Tomcat environment where
66   - // server logging is done via java.util.logging. So, try to
67   - // initialize JBoss Logging to use the JDK logging plugin.
68   - // But only if it isn't already initialized to something else!
69   - if (logger.getLoggerPlugin().getClass().equals(NullLoggerPlugin.class)) {
70   - Logger.setPluginClassName("org.jboss.logging.jdk.JDK14LoggerPlugin");
71   -
72   - logger = Logger.getLogger(ModClusterListener.class);
73   - }
74   -
75   - log = logger;
76   - }
77   -*/
78 61 private static final Logger log = Logger.getLogger(ModClusterListener.class);
79 62
80 63 private final ModClusterServiceMBean service;
@@ -102,7 +85,7 @@ public LifecycleListenerFactory run() {
102 85 for (LifecycleListenerFactory factory: ServiceLoader.load(LifecycleListenerFactory.class, LifecycleListenerFactory.class.getClassLoader())) {
103 86 return factory;
104 87 }
105   - throw new ServiceConfigurationError(String.format("No %s service provider found.", LifecycleListenerFactory.class.getName()));
  88 + throw new ServiceConfigurationError(LifecycleListenerFactory.class.getName());
106 89 }
107 90 };
108 91 return AccessController.doPrivileged(action);
@@ -165,7 +148,7 @@ public void lifecycleEvent(LifecycleEvent event) {
165 148
166 149 Registry.getRegistry(null, null).registerComponent(this, name, null);
167 150 } catch (Exception e) {
168   - log.error(Strings.ERROR_JMX_REGISTER.getString(), e);
  151 + log.error(e.getLocalizedMessage(), e);
169 152 }
170 153 } else if (Lifecycle.STOP_EVENT.equals(type)) {
171 154 try {
@@ -173,7 +156,7 @@ public void lifecycleEvent(LifecycleEvent event) {
173 156
174 157 Registry.getRegistry(null, null).unregisterComponent(name);
175 158 } catch (Exception e) {
176   - log.error(Strings.ERROR_JMX_UNREGISTER.getString(), e);
  159 + log.error(e.getLocalizedMessage(), e);
177 160 }
178 161 }
179 162 }
24 container/catalina/src/main/java/org/jboss/modcluster/container/catalina/CatalinaConnectorFactory.java
... ... @@ -1,7 +1,31 @@
  1 +/*
  2 + * JBoss, Home of Professional Open Source.
  3 + * Copyright 2012, Red Hat Middleware LLC, and individual contributors
  4 + * as indicated by the @author tags. See the copyright.txt file in the
  5 + * distribution for a full listing of individual contributors.
  6 + *
  7 + * This is free software; you can redistribute it and/or modify it
  8 + * under the terms of the GNU Lesser General Public License as
  9 + * published by the Free Software Foundation; either version 2.1 of
  10 + * the License, or (at your option) any later version.
  11 + *
  12 + * This software is distributed in the hope that it will be useful,
  13 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15 + * Lesser General Public License for more details.
  16 + *
  17 + * You should have received a copy of the GNU Lesser General Public
  18 + * License along with this software; if not, write to the Free
  19 + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  20 + * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  21 + */
1 22 package org.jboss.modcluster.container.catalina;
2 23
3 24 import org.jboss.modcluster.container.Connector;
4 25
  26 +/**
  27 + * @author Paul Ferraro
  28 + */
5 29 public class CatalinaConnectorFactory implements ConnectorFactory {
6 30 @Override
7 31 public Connector createConnector(org.apache.catalina.connector.Connector connector) {
24 container/catalina/src/main/java/org/jboss/modcluster/container/catalina/CatalinaContextFactory.java
... ... @@ -1,8 +1,32 @@
  1 +/*
  2 + * JBoss, Home of Professional Open Source.
  3 + * Copyright 2012, Red Hat Middleware LLC, and individual contributors
  4 + * as indicated by the @author tags. See the copyright.txt file in the
  5 + * distribution for a full listing of individual contributors.
  6 + *
  7 + * This is free software; you can redistribute it and/or modify it
  8 + * under the terms of the GNU Lesser General Public License as
  9 + * published by the Free Software Foundation; either version 2.1 of
  10 + * the License, or (at your option) any later version.
  11 + *
  12 + * This software is distributed in the hope that it will be useful,
  13 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15 + * Lesser General Public License for more details.
  16 + *
  17 + * You should have received a copy of the GNU Lesser General Public
  18 + * License along with this software; if not, write to the Free
  19 + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  20 + * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  21 + */
1 22 package org.jboss.modcluster.container.catalina;
2 23
3 24 import org.jboss.modcluster.container.Context;
4 25 import org.jboss.modcluster.container.Host;
5 26
  27 +/**
  28 + * @author Paul Ferraro
  29 + */
6 30 public class CatalinaContextFactory implements ContextFactory {
7 31 @Override
8 32 public Context createContext(org.apache.catalina.Context context, Host host) {
24 container/catalina/src/main/java/org/jboss/modcluster/container/catalina/CatalinaEngineFactory.java
... ... @@ -1,8 +1,32 @@
  1 +/*
  2 + * JBoss, Home of Professional Open Source.
  3 + * Copyright 2012, Red Hat Middleware LLC, and individual contributors
  4 + * as indicated by the @author tags. See the copyright.txt file in the
  5 + * distribution for a full listing of individual contributors.
  6 + *
  7 + * This is free software; you can redistribute it and/or modify it
  8 + * under the terms of the GNU Lesser General Public License as
  9 + * published by the Free Software Foundation; either version 2.1 of
  10 + * the License, or (at your option) any later version.
  11 + *
  12 + * This software is distributed in the hope that it will be useful,
  13 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15 + * Lesser General Public License for more details.
  16 + *
  17 + * You should have received a copy of the GNU Lesser General Public
  18 + * License along with this software; if not, write to the Free
  19 + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  20 + * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  21 + */
1 22 package org.jboss.modcluster.container.catalina;
2 23
3 24 import org.jboss.modcluster.container.Engine;
4 25 import org.jboss.modcluster.container.Server;
5 26
  27 +/**
  28 + * @author Paul Ferraro
  29 + */
6 30 public class CatalinaEngineFactory implements EngineFactory {
7 31 @Override
8 32 public Engine createEngine(CatalinaFactoryRegistry registry, org.apache.catalina.Engine engine, Server server) {
24 container/catalina/src/main/java/org/jboss/modcluster/container/catalina/CatalinaEventHandler.java
... ... @@ -1,3 +1,24 @@
  1 +/*
  2 + * JBoss, Home of Professional Open Source.
  3 + * Copyright 2012, Red Hat Middleware LLC, and individual contributors
  4 + * as indicated by the @author tags. See the copyright.txt file in the
  5 + * distribution for a full listing of individual contributors.
  6 + *
  7 + * This is free software; you can redistribute it and/or modify it
  8 + * under the terms of the GNU Lesser General Public License as
  9 + * published by the Free Software Foundation; either version 2.1 of
  10 + * the License, or (at your option) any later version.
  11 + *
  12 + * This software is distributed in the hope that it will be useful,
  13 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15 + * Lesser General Public License for more details.
  16 + *
  17 + * You should have received a copy of the GNU Lesser General Public
  18 + * License along with this software; if not, write to the Free
  19 + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  20 + * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  21 + */
1 22 package org.jboss.modcluster.container.catalina;
2 23
3 24 import java.beans.PropertyChangeListener;
@@ -5,6 +26,9 @@
5 26 import org.apache.catalina.ContainerListener;
6 27 import org.apache.catalina.LifecycleListener;
7 28
  29 +/**
  30 + * @author Paul Ferraro
  31 + */
8 32 public interface CatalinaEventHandler extends LifecycleListener, ContainerListener, PropertyChangeListener {
9 33
10 34 void start();
25 container/catalina/src/main/java/org/jboss/modcluster/container/catalina/CatalinaFactory.java
... ... @@ -1,3 +1,24 @@
  1 +/*
  2 + * JBoss, Home of Professional Open Source.
  3 + * Copyright 2012, Red Hat Middleware LLC, and individual contributors
  4 + * as indicated by the @author tags. See the copyright.txt file in the
  5 + * distribution for a full listing of individual contributors.
  6 + *
  7 + * This is free software; you can redistribute it and/or modify it
  8 + * under the terms of the GNU Lesser General Public License as
  9 + * published by the Free Software Foundation; either version 2.1 of
  10 + * the License, or (at your option) any later version.
  11 + *
  12 + * This software is distributed in the hope that it will be useful,
  13 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15 + * Lesser General Public License for more details.
  16 + *
  17 + * You should have received a copy of the GNU Lesser General Public
  18 + * License along with this software; if not, write to the Free
  19 + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  20 + * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  21 + */
1 22 package org.jboss.modcluster.container.catalina;
2 23
3 24 import org.jboss.modcluster.container.Context;
@@ -5,6 +26,10 @@
5 26 import org.jboss.modcluster.container.Host;
6 27 import org.jboss.modcluster.container.Server;
7 28
  29 +/**
  30 + * Factory methods for creating container objects from their Catalina equivalents.
  31 + * @author Paul Ferraro
  32 + */
8 33 public interface CatalinaFactory {
9 34 Server createServer(org.apache.catalina.Server server);
10 35
25 container/catalina/src/main/java/org/jboss/modcluster/container/catalina/CatalinaFactoryRegistry.java
... ... @@ -1,6 +1,29 @@
  1 +/*
  2 + * JBoss, Home of Professional Open Source.
  3 + * Copyright 2012, Red Hat Middleware LLC, and individual contributors
  4 + * as indicated by the @author tags. See the copyright.txt file in the
  5 + * distribution for a full listing of individual contributors.
  6 + *
  7 + * This is free software; you can redistribute it and/or modify it
  8 + * under the terms of the GNU Lesser General Public License as
  9 + * published by the Free Software Foundation; either version 2.1 of
  10 + * the License, or (at your option) any later version.
  11 + *
  12 + * This software is distributed in the hope that it will be useful,
  13 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15 + * Lesser General Public License for more details.
  16 + *
  17 + * You should have received a copy of the GNU Lesser General Public
  18 + * License along with this software; if not, write to the Free
  19 + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  20 + * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  21 + */
1 22 package org.jboss.modcluster.container.catalina;
2 23
3   -
  24 +/**
  25 + * @author Paul Ferraro
  26 + */
4 27 public interface CatalinaFactoryRegistry {
5 28 ServerFactory getServerFactory();
6 29
24 container/catalina/src/main/java/org/jboss/modcluster/container/catalina/CatalinaHostFactory.java
... ... @@ -1,8 +1,32 @@
  1 +/*
  2 + * JBoss, Home of Professional Open Source.
  3 + * Copyright 2012, Red Hat Middleware LLC, and individual contributors
  4 + * as indicated by the @author tags. See the copyright.txt file in the
  5 + * distribution for a full listing of individual contributors.
  6 + *
  7 + * This is free software; you can redistribute it and/or modify it
  8 + * under the terms of the GNU Lesser General Public License as
  9 + * published by the Free Software Foundation; either version 2.1 of
  10 + * the License, or (at your option) any later version.
  11 + *
  12 + * This software is distributed in the hope that it will be useful,
  13 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15 + * Lesser General Public License for more details.
  16 + *
  17 + * You should have received a copy of the GNU Lesser General Public
  18 + * License along with this software; if not, write to the Free
  19 + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  20 + * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  21 + */
1 22 package org.jboss.modcluster.container.catalina;
2 23
3 24 import org.jboss.modcluster.container.Engine;
4 25 import org.jboss.modcluster.container.Host;
5 26
  27 +/**
  28 + * @author Paul Ferraro
  29 + */
6 30 public class CatalinaHostFactory implements HostFactory {
7 31 @Override
8 32 public Host createHost(CatalinaFactoryRegistry registry, org.apache.catalina.Host host, Engine engine) {
24 container/catalina/src/main/java/org/jboss/modcluster/container/catalina/CatalinaServerFactory.java
... ... @@ -1,7 +1,31 @@
  1 +/*
  2 + * JBoss, Home of Professional Open Source.
  3 + * Copyright 2012, Red Hat Middleware LLC, and individual contributors
  4 + * as indicated by the @author tags. See the copyright.txt file in the
  5 + * distribution for a full listing of individual contributors.
  6 + *
  7 + * This is free software; you can redistribute it and/or modify it
  8 + * under the terms of the GNU Lesser General Public License as
  9 + * published by the Free Software Foundation; either version 2.1 of
  10 + * the License, or (at your option) any later version.
  11 + *
  12 + * This software is distributed in the hope that it will be useful,
  13 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15 + * Lesser General Public License for more details.
  16 + *
  17 + * You should have received a copy of the GNU Lesser General Public
  18 + * License along with this software; if not, write to the Free
  19 + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  20 + * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  21 + */
1 22 package org.jboss.modcluster.container.catalina;
2 23
3 24 import org.jboss.modcluster.container.Server;
4 25
  26 +/**
  27 + * @author Paul Ferraro
  28 + */
5 29 public class CatalinaServerFactory implements ServerFactory {
6 30 @Override
7 31 public Server createServer(CatalinaFactoryRegistry registry, org.apache.catalina.Server server) {
24 container/catalina/src/main/java/org/jboss/modcluster/container/catalina/ConnectorFactory.java
... ... @@ -1,7 +1,31 @@
  1 +/*
  2 + * JBoss, Home of Professional Open Source.
  3 + * Copyright 2012, Red Hat Middleware LLC, and individual contributors
  4 + * as indicated by the @author tags. See the copyright.txt file in the
  5 + * distribution for a full listing of individual contributors.
  6 + *
  7 + * This is free software; you can redistribute it and/or modify it
  8 + * under the terms of the GNU Lesser General Public License as
  9 + * published by the Free Software Foundation; either version 2.1 of
  10 + * the License, or (at your option) any later version.
  11 + *
  12 + * This software is distributed in the hope that it will be useful,
  13 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15 + * Lesser General Public License for more details.
  16 + *
  17 + * You should have received a copy of the GNU Lesser General Public
  18 + * License along with this software; if not, write to the Free
  19 + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  20 + * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  21 + */
1 22 package org.jboss.modcluster.container.catalina;
2 23
3 24 import org.jboss.modcluster.container.Connector;
4 25
  26 +/**
  27 + * @author Paul Ferraro
  28 + */
5 29 public interface ConnectorFactory {
6 30 Connector createConnector(org.apache.catalina.connector.Connector connector);
7 31 }
24 container/catalina/src/main/java/org/jboss/modcluster/container/catalina/ContextFactory.java
... ... @@ -1,8 +1,32 @@
  1 +/*
  2 + * JBoss, Home of Professional Open Source.
  3 + * Copyright 2012, Red Hat Middleware LLC, and individual contributors
  4 + * as indicated by the @author tags. See the copyright.txt file in the
  5 + * distribution for a full listing of individual contributors.
  6 + *
  7 + * This is free software; you can redistribute it and/or modify it
  8 + * under the terms of the GNU Lesser General Public License as
  9 + * published by the Free Software Foundation; either version 2.1 of
  10 + * the License, or (at your option) any later version.
  11 + *
  12 + * This software is distributed in the hope that it will be useful,
  13 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15 + * Lesser General Public License for more details.
  16 + *
  17 + * You should have received a copy of the GNU Lesser General Public
  18 + * License along with this software; if not, write to the Free
  19 + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  20 + * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  21 + */
1 22 package org.jboss.modcluster.container.catalina;
2 23
3 24 import org.jboss.modcluster.container.Context;
4 25 import org.jboss.modcluster.container.Host;
5 26
  27 +/**
  28 + * @author Paul Ferraro
  29 + */
6 30 public interface ContextFactory {
7 31 Context createContext(org.apache.catalina.Context context, Host host);
8 32 }
24 container/catalina/src/main/java/org/jboss/modcluster/container/catalina/EngineFactory.java
... ... @@ -1,8 +1,32 @@
  1 +/*
  2 + * JBoss, Home of Professional Open Source.
  3 + * Copyright 2012, Red Hat Middleware LLC, and individual contributors
  4 + * as indicated by the @author tags. See the copyright.txt file in the
  5 + * distribution for a full listing of individual contributors.
  6 + *
  7 + * This is free software; you can redistribute it and/or modify it
  8 + * under the terms of the GNU Lesser General Public License as
  9 + * published by the Free Software Foundation; either version 2.1 of
  10 + * the License, or (at your option) any later version.
  11 + *
  12 + * This software is distributed in the hope that it will be useful,
  13 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15 + * Lesser General Public License for more details.
  16 + *
  17 + * You should have received a copy of the GNU Lesser General Public
  18 + * License along with this software; if not, write to the Free
  19 + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  20 + * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  21 + */
1 22 package org.jboss.modcluster.container.catalina;
2 23
3 24 import org.jboss.modcluster.container.Engine;
4 25 import org.jboss.modcluster.container.Server;
5 26
  27 +/**
  28 + * @author Paul Ferraro
  29 + */
6 30 public interface EngineFactory {
7 31 Engine createEngine(CatalinaFactoryRegistry registry, org.apache.catalina.Engine engine, Server server);
8 32 }
24 container/catalina/src/main/java/org/jboss/modcluster/container/catalina/HostFactory.java
... ... @@ -1,8 +1,32 @@
  1 +/*
  2 + * JBoss, Home of Professional Open Source.
  3 + * Copyright 2012, Red Hat Middleware LLC, and individual contributors
  4 + * as indicated by the @author tags. See the copyright.txt file in the
  5 + * distribution for a full listing of individual contributors.
  6 + *
  7 + * This is free software; you can redistribute it and/or modify it
  8 + * under the terms of the GNU Lesser General Public License as
  9 + * published by the Free Software Foundation; either version 2.1 of
  10 + * the License, or (at your option) any later version.
  11 + *
  12 + * This software is distributed in the hope that it will be useful,
  13 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15 + * Lesser General Public License for more details.
  16 + *
  17 + * You should have received a copy of the GNU Lesser General Public
  18 + * License along with this software; if not, write to the Free
  19 + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  20 + * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  21 + */
1 22 package org.jboss.modcluster.container.catalina;
2 23
3 24 import org.jboss.modcluster.container.Engine;
4 25 import org.jboss.modcluster.container.Host;
5 26
  27 +/**
  28 + * @author Paul Ferraro
  29 + */
6 30 public interface HostFactory {
7 31 Host createHost(CatalinaFactoryRegistry registry, org.apache.catalina.Host host, Engine engine);
8 32 }
25 container/catalina/src/main/java/org/jboss/modcluster/container/catalina/JMXServerProvider.java
... ... @@ -1,3 +1,24 @@
  1 +/*
  2 + * JBoss, Home of Professional Open Source.
  3 + * Copyright 2012, Red Hat Middleware LLC, and individual contributors
  4 + * as indicated by the @author tags. See the copyright.txt file in the
  5 + * distribution for a full listing of individual contributors.
  6 + *
  7 + * This is free software; you can redistribute it and/or modify it
  8 + * under the terms of the GNU Lesser General Public License as
  9 + * published by the Free Software Foundation; either version 2.1 of
  10 + * the License, or (at your option) any later version.
  11 + *
  12 + * This software is distributed in the hope that it will be useful,
  13 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15 + * Lesser General Public License for more details.
  16 + *
  17 + * You should have received a copy of the GNU Lesser General Public
  18 + * License along with this software; if not, write to the Free
  19 + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  20 + * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  21 + */
1 22 package org.jboss.modcluster.container.catalina;
2 23
3 24 import javax.management.JMException;
@@ -7,6 +28,10 @@
7 28 import org.apache.catalina.Server;
8 29 import org.apache.catalina.Service;
9 30
  31 +/**
  32 + * {@link ServerProvider} that uses JMX to locate the {@link Server}.
  33 + * @author Paul Ferraro
  34 + */
10 35 public class JMXServerProvider implements ServerProvider {
11 36 private final ObjectName name;
12 37 private final MBeanServer mbeanServer;
24 container/catalina/src/main/java/org/jboss/modcluster/container/catalina/LifecycleListenerFactory.java
... ... @@ -1,8 +1,32 @@
  1 +/*
  2 + * JBoss, Home of Professional Open Source.
  3 + * Copyright 2012, Red Hat Middleware LLC, and individual contributors
  4 + * as indicated by the @author tags. See the copyright.txt file in the
  5 + * distribution for a full listing of individual contributors.
  6 + *
  7 + * This is free software; you can redistribute it and/or modify it
  8 + * under the terms of the GNU Lesser General Public License as
  9 + * published by the Free Software Foundation; either version 2.1 of
  10 + * the License, or (at your option) any later version.
  11 + *
  12 + * This software is distributed in the hope that it will be useful,
  13 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15 + * Lesser General Public License for more details.
  16 + *
  17 + * You should have received a copy of the GNU Lesser General Public
  18 + * License along with this software; if not, write to the Free
  19 + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  20 + * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  21 + */
1 22 package org.jboss.modcluster.container.catalina;
2 23
3 24 import org.apache.catalina.LifecycleListener;
4 25 import org.jboss.modcluster.container.ContainerEventHandler;
5 26
  27 +/**
  28 + * @author Paul Ferraro
  29 + */
6 30 public interface LifecycleListenerFactory {
7 31 LifecycleListener createListener(ContainerEventHandler handler);
8 32 }
24 container/catalina/src/main/java/org/jboss/modcluster/container/catalina/RequestListenerValveFactory.java
... ... @@ -1,9 +1,33 @@
  1 +/*
  2 + * JBoss, Home of Professional Open Source.
  3 + * Copyright 2012, Red Hat Middleware LLC, and individual contributors
  4 + * as indicated by the @author tags. See the copyright.txt file in the
  5 + * distribution for a full listing of individual contributors.
  6 + *
  7 + * This is free software; you can redistribute it and/or modify it
  8 + * under the terms of the GNU Lesser General Public License as
  9 + * published by the Free Software Foundation; either version 2.1 of
  10 + * the License, or (at your option) any later version.
  11 + *
  12 + * This software is distributed in the hope that it will be useful,
  13 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15 + * Lesser General Public License for more details.
  16 + *
  17 + * You should have received a copy of the GNU Lesser General Public
  18 + * License along with this software; if not, write to the Free
  19 + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  20 + * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  21 + */
1 22 package org.jboss.modcluster.container.catalina;
2 23
3 24 import javax.servlet.ServletRequestListener;
4 25
5 26 import org.apache.catalina.Valve;
6 27
  28 +/**
  29 + * @author Paul Ferraro
  30 + */
7 31 public interface RequestListenerValveFactory {
8 32 Valve createValve(ServletRequestListener listener);
9 33 }
24 container/catalina/src/main/java/org/jboss/modcluster/container/catalina/ServerFactory.java
... ... @@ -1,7 +1,31 @@
  1 +/*
  2 + * JBoss, Home of Professional Open Source.
  3 + * Copyright 2012, Red Hat Middleware LLC, and individual contributors
  4 + * as indicated by the @author tags. See the copyright.txt file in the
  5 + * distribution for a full listing of individual contributors.
  6 + *
  7 + * This is free software; you can redistribute it and/or modify it
  8 + * under the terms of the GNU Lesser General Public License as
  9 + * published by the Free Software Foundation; either version 2.1 of
  10 + * the License, or (at your option) any later version.
  11 + *
  12 + * This software is distributed in the hope that it will be useful,
  13 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15 + * Lesser General Public License for more details.
  16 + *
  17 + * You should have received a copy of the GNU Lesser General Public
  18 + * License along with this software; if not, write to the Free
  19 + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  20 + * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  21 + */
1 22 package org.jboss.modcluster.container.catalina;
2 23
3 24 import org.jboss.modcluster.container.Server;
4 25
  26 +/**
  27 + * @author Paul Ferraro
  28 + */
5 29 public interface ServerFactory {
6 30 Server createServer(CatalinaFactoryRegistry registry, org.apache.catalina.Server server);
7 31 }
24 container/catalina/src/main/java/org/jboss/modcluster/container/catalina/ServerProvider.java
... ... @@ -1,7 +1,31 @@
  1 +/*
  2 + * JBoss, Home of Professional Open Source.
  3 + * Copyright 2012, Red Hat Middleware LLC, and individual contributors
  4 + * as indicated by the @author tags. See the copyright.txt file in the
  5 + * distribution for a full listing of individual contributors.
  6 + *
  7 + * This is free software; you can redistribute it and/or modify it
  8 + * under the terms of the GNU Lesser General Public License as
  9 + * published by the Free Software Foundation; either version 2.1 of
  10 + * the License, or (at your option) any later version.
  11 + *
  12 + * This software is distributed in the hope that it will be useful,
  13 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15 + * Lesser General Public License for more details.
  16 + *
  17 + * You should have received a copy of the GNU Lesser General Public
  18 + * License along with this software; if not, write to the Free
  19 + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  20 + * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  21 + */
1 22 package org.jboss.modcluster.container.catalina;
2 23
3 24 import org.apache.catalina.Server;
4 25
  26 +/**
  27 + * @author Paul Ferraro
  28 + */
5 29 public interface ServerProvider {
6 30 Server getServer();
7 31 }
24 container/catalina/src/main/java/org/jboss/modcluster/container/catalina/ServiceLoaderCatalinaFactory.java
... ... @@ -1,3 +1,24 @@
  1 +/*
  2 + * JBoss, Home of Professional Open Source.
  3 + * Copyright 2012, Red Hat Middleware LLC, and individual contributors
  4 + * as indicated by the @author tags. See the copyright.txt file in the
  5 + * distribution for a full listing of individual contributors.
  6 + *
  7 + * This is free software; you can redistribute it and/or modify it
  8 + * under the terms of the GNU Lesser General Public License as
  9 + * published by the Free Software Foundation; either version 2.1 of
  10 + * the License, or (at your option) any later version.
  11 + *
  12 + * This software is distributed in the hope that it will be useful,
  13 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15 + * Lesser General Public License for more details.
  16 + *
  17 + * You should have received a copy of the GNU Lesser General Public
  18 + * License along with this software; if not, write to the Free
  19 + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  20 + * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  21 + */
1 22 package org.jboss.modcluster.container.catalina;
2 23
3 24 import java.security.AccessController;
@@ -9,6 +30,9 @@
9 30 import org.jboss.modcluster.container.Host;
10 31 import org.jboss.modcluster.container.Server;
11 32
  33 +/**
  34 + * @author Paul Ferraro
  35 + */
12 36 public class ServiceLoaderCatalinaFactory implements CatalinaFactory, CatalinaFactoryRegistry {
13 37 private final ServerFactory serverFactory;
14 38 private final EngineFactory engineFactory;
24 container/catalina/src/main/java/org/jboss/modcluster/container/catalina/SimpleServerProvider.java
... ... @@ -1,7 +1,31 @@
  1 +/*
  2 + * JBoss, Home of Professional Open Source.
  3 + * Copyright 2012, Red Hat Middleware LLC, and individual contributors
  4 + * as indicated by the @author tags. See the copyright.txt file in the
  5 + * distribution for a full listing of individual contributors.
  6 + *
  7 + * This is free software; you can redistribute it and/or modify it
  8 + * under the terms of the GNU Lesser General Public License as
  9 + * published by the Free Software Foundation; either version 2.1 of
  10 + * the License, or (at your option) any later version.
  11 + *
  12 + * This software is distributed in the hope that it will be useful,
  13 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15 + * Lesser General Public License for more details.
  16 + *
  17 + * You should have received a copy of the GNU Lesser General Public
  18 + * License along with this software; if not, write to the Free
  19 + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  20 + * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  21 + */
1 22 package org.jboss.modcluster.container.catalina;
2 23
3 24 import org.apache.catalina.Server;
4 25
  26 +/**
  27 + * @author Paul Ferraro
  28 + */
5 29 public class SimpleServerProvider implements ServerProvider {
6 30 private final Server server;
7 31
3  container/jbossweb/src/main/java/org/jboss/modcluster/container/jbossweb/JBossWebConnector.java
@@ -25,6 +25,9 @@
25 25 import org.apache.catalina.connector.Connector;
26 26 import org.jboss.modcluster.container.catalina.CatalinaConnector;
27 27
  28 +/**
  29 + * @author Paul Ferraro
  30 + */
28 31 public class JBossWebConnector extends CatalinaConnector {
29 32
30 33 public JBossWebConnector(Connector connector) {
3  container/jbossweb/src/main/java/org/jboss/modcluster/container/jbossweb/JBossWebConnectorFactory.java
@@ -25,6 +25,9 @@
25 25 import org.jboss.modcluster.container.Connector;
26 26 import org.jboss.modcluster.container.catalina.ConnectorFactory;
27 27
  28 +/**
  29 + * @author Paul Ferraro
  30 + */
28 31 public class JBossWebConnectorFactory implements ConnectorFactory {
29 32 @Override
30 33 public Connector createConnector(org.apache.catalina.connector.Connector connector) {
24 container/jbossweb/src/main/java/org/jboss/modcluster/container/jbossweb/JBossWebContext.java
... ... @@ -1,3 +1,24 @@
  1 +/*
  2 + * JBoss, Home of Professional Open Source.
  3 + * Copyright 2012, Red Hat Middleware LLC, and individual contributors
  4 + * as indicated by the @author tags. See the copyright.txt file in the
  5 + * distribution for a full listing of individual contributors.
  6 + *
  7 + * This is free software; you can redistribute it and/or modify it
  8 + * under the terms of the GNU Lesser General Public License as
  9 + * published by the Free Software Foundation; either version 2.1 of
  10 + * the License, or (at your option) any later version.
  11 + *
  12 + * This software is distributed in the hope that it will be useful,
  13 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15 + * Lesser General Public License for more details.
  16 + *
  17 + * You should have received a copy of the GNU Lesser General Public
  18 + * License along with this software; if not, write to the Free
  19 + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  20 + * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  21 + */
1 22 package org.jboss.modcluster.container.jbossweb;
2 23
3 24 import java.io.IOException;
@@ -16,6 +37,9 @@
16 37 import org.jboss.modcluster.container.catalina.RequestListenerValveFactory;
17 38 import org.jboss.servlet.http.HttpEvent;
18 39
  40 +/**
  41 + * @author Paul Ferraro
  42 + */
19 43 public class JBossWebContext extends CatalinaContext {
20 44
21 45 public JBossWebContext(Context context, Host host) {
24 container/jbossweb/src/main/java/org/jboss/modcluster/container/jbossweb/JBossWebContextFactory.java
... ... @@ -1,9 +1,33 @@
  1 +/*
  2 + * JBoss, Home of Professional Open Source.
  3 + * Copyright 2012, Red Hat Middleware LLC, and individual contributors
  4 + * as indicated by the @author tags. See the copyright.txt file in the
  5 + * distribution for a full listing of individual contributors.
  6 + *
  7 + * This is free software; you can redistribute it and/or modify it
  8 + * under the terms of the GNU Lesser General Public License as
  9 + * published by the Free Software Foundation; either version 2.1 of
  10 + * the License, or (at your option) any later version.
  11 + *
  12 + * This software is distributed in the hope that it will be useful,
  13 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15 + * Lesser General Public License for more details.
  16 + *
  17 + * You should have received a copy of the GNU Lesser General Public
  18 + * License along with this software; if not, write to the Free
  19 + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  20 + * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  21 + */
1 22 package org.jboss.modcluster.container.jbossweb;
2 23
3 24 import org.jboss.modcluster.container.Context;
4 25 import org.jboss.modcluster.container.Host;
5 26 import org.jboss.modcluster.container.catalina.ContextFactory;
6 27
  28 +/**
  29 + * @author Paul Ferraro
  30 + */
7 31 public class JBossWebContextFactory implements ContextFactory {
8 32 @Override
9 33 public Context createContext(org.apache.catalina.Context context, Host host) {
24 container/jbossweb/src/main/java/org/jboss/modcluster/container/jbossweb/JBossWebEventHandlerAdapter.java
... ... @@ -1,3 +1,24 @@
  1 +/*
  2 + * JBoss, Home of Professional Open Source.
  3 + * Copyright 2012, Red Hat Middleware LLC, and individual contributors
  4 + * as indicated by the @author tags. See the copyright.txt file in the
  5 + * distribution for a full listing of individual contributors.
  6 + *
  7 + * This is free software; you can redistribute it and/or modify it
  8 + * under the terms of the GNU Lesser General Public License as
  9 + * published by the Free Software Foundation; either version 2.1 of
  10 + * the License, or (at your option) any later version.
  11 + *
  12 + * This software is distributed in the hope that it will be useful,
  13 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15 + * Lesser General Public License for more details.
  16 + *
  17 + * You should have received a copy of the GNU Lesser General Public
  18 + * License along with this software; if not, write to the Free
  19 + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  20 + * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  21 + */
1 22 package org.jboss.modcluster.container.jbossweb;
2 23
3 24 import java.lang.management.ManagementFactory;
@@ -21,6 +42,9 @@
21 42 import org.jboss.modcluster.container.catalina.JMXServerProvider;
22 43 import org.jboss.modcluster.container.catalina.ServerProvider;
23 44
  45 +/**
  46 + * @author Paul Ferraro
  47 + */
24 48 public class JBossWebEventHandlerAdapter extends CatalinaEventHandlerAdapter implements NotificationListener {
25 49
26 50 private volatile ObjectName serviceObjectName = toObjectName("jboss.web:service=WebServer");
24 ...ner/jbossweb/src/main/java/org/jboss/modcluster/container/jbossweb/JBossWebLifecycleListenerFactory.java
... ... @@ -1,9 +1,33 @@
  1 +/*
  2 + * JBoss, Home of Professional Open Source.
  3 + * Copyright 2012, Red Hat Middleware LLC, and individual contributors
  4 + * as indicated by the @author tags. See the copyright.txt file in the
  5 + * distribution for a full listing of individual contributors.
  6 + *
  7 + * This is free software; you can redistribute it and/or modify it
  8 + * under the terms of the GNU Lesser General Public License as
  9 + * published by the Free Software Foundation; either version 2.1 of
  10 + * the License, or (at your option) any later version.
  11 + *
  12 + * This software is distributed in the hope that it will be useful,
  13 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15 + * Lesser General Public License for more details.
  16 + *
  17 + * You should have received a copy of the GNU Lesser General Public
  18 + * License along with this software; if not, write to the Free
  19 + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  20 + * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  21 + */
1 22 package org.jboss.modcluster.container.jbossweb;
2 23
3 24 import org.apache.catalina.LifecycleListener;
4 25 import org.jboss.modcluster.container.ContainerEventHandler;
5 26 import org.jboss.modcluster.container.catalina.LifecycleListenerFactory;
6 27
  28 +/**
  29 + * @author Paul Ferraro
  30 + */
7 31 public class JBossWebLifecycleListenerFactory implements LifecycleListenerFactory {
8 32
9 33 @Override
24 container/tomcat6/src/main/java/org/jboss/modcluster/container/tomcat/TomcatConnector.java
... ... @@ -1,8 +1,32 @@
  1 +/*