Permalink
Browse files

Merge pull request #3 from pferraro/master

MODCLUSTER-315 Convert project to use i18n logging and exceptions
  • Loading branch information...
2 parents 088f844 + 8bdebac commit 9e38c930dcd79a489c10f8e055c3d2891d388823 @jfclere jfclere committed Sep 24, 2012
Showing with 1,108 additions and 5,095 deletions.
  1. +3 −20 ...andalone/src/main/java/org/jboss/modcluster/container/catalina/standalone/ModClusterListener.java
  2. +24 −0 ...iner/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 ...ainer/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 ...iner/catalina/src/main/java/org/jboss/modcluster/container/catalina/LifecycleListenerFactory.java
  16. +24 −0 ...r/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 .../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 ...iner/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 ...r/jbossweb/src/main/java/org/jboss/modcluster/container/jbossweb/JBossWebEventHandlerAdapter.java
  26. +24 −0 ...ssweb/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 ...r/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 ...r/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
@@ -43,7 +43,6 @@
import org.jboss.logging.Logger;
import org.jboss.modcluster.ModClusterService;
import org.jboss.modcluster.ModClusterServiceMBean;
-import org.jboss.modcluster.Strings;
import org.jboss.modcluster.config.JvmRouteFactory;
import org.jboss.modcluster.config.impl.ModClusterConfig;
import org.jboss.modcluster.container.catalina.LifecycleListenerFactory;
@@ -59,22 +58,6 @@
* @author Paul Ferraro
*/
public class ModClusterListener extends ModClusterConfig implements LifecycleListener, LoadBalanceFactorProviderFactory, ModClusterServiceMBean {
-/*
- static {
- Logger logger = Logger.getLogger(ModClusterListener.class);
- // We expect to run in a JBoss Web/Tomcat environment where
- // server logging is done via java.util.logging. So, try to
- // initialize JBoss Logging to use the JDK logging plugin.
- // But only if it isn't already initialized to something else!
- if (logger.getLoggerPlugin().getClass().equals(NullLoggerPlugin.class)) {
- Logger.setPluginClassName("org.jboss.logging.jdk.JDK14LoggerPlugin");
-
- logger = Logger.getLogger(ModClusterListener.class);
- }
-
- log = logger;
- }
-*/
private static final Logger log = Logger.getLogger(ModClusterListener.class);
private final ModClusterServiceMBean service;
@@ -102,7 +85,7 @@ public LifecycleListenerFactory run() {
for (LifecycleListenerFactory factory: ServiceLoader.load(LifecycleListenerFactory.class, LifecycleListenerFactory.class.getClassLoader())) {
return factory;
}
- throw new ServiceConfigurationError(String.format("No %s service provider found.", LifecycleListenerFactory.class.getName()));
+ throw new ServiceConfigurationError(LifecycleListenerFactory.class.getName());
}
};
return AccessController.doPrivileged(action);
@@ -165,15 +148,15 @@ public void lifecycleEvent(LifecycleEvent event) {
Registry.getRegistry(null, null).registerComponent(this, name, null);
} catch (Exception e) {
- log.error(Strings.ERROR_JMX_REGISTER.getString(), e);
+ log.error(e.getLocalizedMessage(), e);
}
} else if (Lifecycle.STOP_EVENT.equals(type)) {
try {
ObjectName name = this.getObjectName(server);
Registry.getRegistry(null, null).unregisterComponent(name);
} catch (Exception e) {
- log.error(Strings.ERROR_JMX_UNREGISTER.getString(), e);
+ log.error(e.getLocalizedMessage(), e);
}
}
}
@@ -1,7 +1,31 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package org.jboss.modcluster.container.catalina;
import org.jboss.modcluster.container.Connector;
+/**
+ * @author Paul Ferraro
+ */
public class CatalinaConnectorFactory implements ConnectorFactory {
@Override
public Connector createConnector(org.apache.catalina.connector.Connector connector) {
@@ -1,8 +1,32 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package org.jboss.modcluster.container.catalina;
import org.jboss.modcluster.container.Context;
import org.jboss.modcluster.container.Host;
+/**
+ * @author Paul Ferraro
+ */
public class CatalinaContextFactory implements ContextFactory {
@Override
public Context createContext(org.apache.catalina.Context context, Host host) {
@@ -1,8 +1,32 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package org.jboss.modcluster.container.catalina;
import org.jboss.modcluster.container.Engine;
import org.jboss.modcluster.container.Server;
+/**
+ * @author Paul Ferraro
+ */
public class CatalinaEngineFactory implements EngineFactory {
@Override
public Engine createEngine(CatalinaFactoryRegistry registry, org.apache.catalina.Engine engine, Server server) {
@@ -1,10 +1,34 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package org.jboss.modcluster.container.catalina;
import java.beans.PropertyChangeListener;
import org.apache.catalina.ContainerListener;
import org.apache.catalina.LifecycleListener;
+/**
+ * @author Paul Ferraro
+ */
public interface CatalinaEventHandler extends LifecycleListener, ContainerListener, PropertyChangeListener {
void start();
@@ -1,10 +1,35 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package org.jboss.modcluster.container.catalina;
import org.jboss.modcluster.container.Context;
import org.jboss.modcluster.container.Engine;
import org.jboss.modcluster.container.Host;
import org.jboss.modcluster.container.Server;
+/**
+ * Factory methods for creating container objects from their Catalina equivalents.
+ * @author Paul Ferraro
+ */
public interface CatalinaFactory {
Server createServer(org.apache.catalina.Server server);
@@ -1,6 +1,29 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package org.jboss.modcluster.container.catalina;
-
+/**
+ * @author Paul Ferraro
+ */
public interface CatalinaFactoryRegistry {
ServerFactory getServerFactory();
@@ -1,8 +1,32 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package org.jboss.modcluster.container.catalina;
import org.jboss.modcluster.container.Engine;
import org.jboss.modcluster.container.Host;
+/**
+ * @author Paul Ferraro
+ */
public class CatalinaHostFactory implements HostFactory {
@Override
public Host createHost(CatalinaFactoryRegistry registry, org.apache.catalina.Host host, Engine engine) {
@@ -1,7 +1,31 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package org.jboss.modcluster.container.catalina;
import org.jboss.modcluster.container.Server;
+/**
+ * @author Paul Ferraro
+ */
public class CatalinaServerFactory implements ServerFactory {
@Override
public Server createServer(CatalinaFactoryRegistry registry, org.apache.catalina.Server server) {
@@ -1,7 +1,31 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package org.jboss.modcluster.container.catalina;
import org.jboss.modcluster.container.Connector;
+/**
+ * @author Paul Ferraro
+ */
public interface ConnectorFactory {
Connector createConnector(org.apache.catalina.connector.Connector connector);
}
@@ -1,8 +1,32 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package org.jboss.modcluster.container.catalina;
import org.jboss.modcluster.container.Context;
import org.jboss.modcluster.container.Host;
+/**
+ * @author Paul Ferraro
+ */
public interface ContextFactory {
Context createContext(org.apache.catalina.Context context, Host host);
}
Oops, something went wrong. Retry.

0 comments on commit 9e38c93

Please sign in to comment.