Author: alessio.soldano(a)jboss.com
Date: 2009-05-25 07:18:36 -0400 (Mon, 25 May 2009)
New Revision: 10095
Added:
stack/metro/trunk/modules/server/src/main/java/org/jboss/wsf/stack/metro/config/MetroStackConfigFactory.java
stack/metro/trunk/modules/server/src/main/resources/jbossws-metro-server.jar/META-INF/services/org.jboss.wsf.spi.management.StackConfigFactory
Removed:
stack/metro/trunk/modules/server/src/main/java/org/jboss/wsf/stack/metro/config/MetroServerConfig.java
stack/metro/trunk/modules/server/src/main/java/org/jboss/wsf/stack/metro/config/MetroServerConfigMBean.java
Modified:
stack/metro/trunk/modules/server/src/main/resources/jbossws-metro-config.xml
stack/metro/trunk/pom.xml
Log:
[JBWS-2652] Providing StackConfigFactory + removing ServerConfig from stack
Deleted:
stack/metro/trunk/modules/server/src/main/java/org/jboss/wsf/stack/metro/config/MetroServerConfig.java
===================================================================
---
stack/metro/trunk/modules/server/src/main/java/org/jboss/wsf/stack/metro/config/MetroServerConfig.java 2009-05-25
11:17:30 UTC (rev 10094)
+++
stack/metro/trunk/modules/server/src/main/java/org/jboss/wsf/stack/metro/config/MetroServerConfig.java 2009-05-25
11:18:36 UTC (rev 10095)
@@ -1,53 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, 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.wsf.stack.metro.config;
-
-import org.jboss.logging.Logger;
-import org.jboss.wsf.common.management.AbstractServerConfig;
-
-/**
- * Basic implementation of a ServerConfig
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 08-May-2006
- */
-public class MetroServerConfig extends AbstractServerConfig implements
MetroServerConfigMBean
-{
- private static final Logger log = Logger.getLogger(MetroServerConfig.class);
-
- public String getImplementationTitle()
- {
- return getClass().getPackage().getImplementationTitle();
- }
-
- public String getImplementationVersion()
- {
- return getClass().getPackage().getImplementationVersion();
- }
-
- public void create() throws Exception
- {
- log.info(getImplementationTitle());
- log.info(getImplementationVersion());
- super.create();
- }
-}
Deleted:
stack/metro/trunk/modules/server/src/main/java/org/jboss/wsf/stack/metro/config/MetroServerConfigMBean.java
===================================================================
---
stack/metro/trunk/modules/server/src/main/java/org/jboss/wsf/stack/metro/config/MetroServerConfigMBean.java 2009-05-25
11:17:30 UTC (rev 10094)
+++
stack/metro/trunk/modules/server/src/main/java/org/jboss/wsf/stack/metro/config/MetroServerConfigMBean.java 2009-05-25
11:18:36 UTC (rev 10095)
@@ -1,34 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, 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.wsf.stack.metro.config;
-
-import org.jboss.wsf.common.management.AbstractServerConfigMBean;
-
-/**
- * Basic implementation of a ServerConfig
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 08-May-2006
- */
-public interface MetroServerConfigMBean extends AbstractServerConfigMBean
-{
-}
Added:
stack/metro/trunk/modules/server/src/main/java/org/jboss/wsf/stack/metro/config/MetroStackConfigFactory.java
===================================================================
---
stack/metro/trunk/modules/server/src/main/java/org/jboss/wsf/stack/metro/config/MetroStackConfigFactory.java
(rev 0)
+++
stack/metro/trunk/modules/server/src/main/java/org/jboss/wsf/stack/metro/config/MetroStackConfigFactory.java 2009-05-25
11:18:36 UTC (rev 10095)
@@ -0,0 +1,55 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, 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.wsf.stack.metro.config;
+
+import org.jboss.wsf.spi.management.StackConfig;
+import org.jboss.wsf.spi.management.StackConfigFactory;
+
+/**
+ *
+ * @author alessio.soldano(a)jboss.com
+ * @since 25-May-2009
+ *
+ */
+public class MetroStackConfigFactory extends StackConfigFactory
+{
+ @Override
+ public StackConfig getStackConfig()
+ {
+ return new MetroStackConfig();
+ }
+}
+
+class MetroStackConfig implements StackConfig
+{
+
+ public String getImplementationTitle()
+ {
+ return getClass().getPackage().getImplementationTitle();
+ }
+
+ public String getImplementationVersion()
+ {
+ return getClass().getPackage().getImplementationVersion();
+ }
+
+}
\ No newline at end of file
Property changes on:
stack/metro/trunk/modules/server/src/main/java/org/jboss/wsf/stack/metro/config/MetroStackConfigFactory.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Modified: stack/metro/trunk/modules/server/src/main/resources/jbossws-metro-config.xml
===================================================================
---
stack/metro/trunk/modules/server/src/main/resources/jbossws-metro-config.xml 2009-05-25
11:17:30 UTC (rev 10094)
+++
stack/metro/trunk/modules/server/src/main/resources/jbossws-metro-config.xml 2009-05-25
11:18:36 UTC (rev 10095)
@@ -1,29 +1,4 @@
- <!-- An abstraction of server configuration aspects. -->
- <bean name="WSServerConfig"
class="org.jboss.wsf.stack.metro.config.MetroServerConfig">
- <property name="mbeanServer"><inject
bean="WSMBeanServerLocator"
property="mbeanServer"/></property>
-
- <!--
- The WSDL, that is a required deployment artifact for an endpoint, has a
<soap:address>
- element which points to the location of the endpoint. JBoss supports rewriting of
that SOAP address.
-
- If the content of <soap:address> is a valid URL, JBossWS will not rewrite
it unless 'modifySOAPAddress' is true.
- If the content of <soap:address> is not a valid URL, JBossWS will rewrite
it using the attribute values given below.
-
- If 'webServiceHost' is not set, JBossWS uses requesters protocol host and
port when rewriting the <soap:address>.
- -->
- <property
name="webServiceHost">${jboss.bind.address}</property>
- <property name="modifySOAPAddress">true</property>
-
- <!--
- Set these properties to explicitly define the ports that will be used for rewriting
the SOAP address.
- Otherwise the ports will be identified by querying the list of installed
connectors.
- If multiple connectors are found the port of the first connector is used.
- <property name="webServiceSecurePort">8443</property>
- <property name="webServicePort">8080</property>
- -->
- </bean>
-
<!-- The registry for web service endpoints -->
<bean name="WSEndpointRegistry"
class="org.jboss.wsf.framework.management.ManagedEndpointRegistry">
<property name="mbeanServer"><inject
bean="WSMBeanServerLocator"
property="mbeanServer"/></property>
Added:
stack/metro/trunk/modules/server/src/main/resources/jbossws-metro-server.jar/META-INF/services/org.jboss.wsf.spi.management.StackConfigFactory
===================================================================
---
stack/metro/trunk/modules/server/src/main/resources/jbossws-metro-server.jar/META-INF/services/org.jboss.wsf.spi.management.StackConfigFactory
(rev 0)
+++
stack/metro/trunk/modules/server/src/main/resources/jbossws-metro-server.jar/META-INF/services/org.jboss.wsf.spi.management.StackConfigFactory 2009-05-25
11:18:36 UTC (rev 10095)
@@ -0,0 +1 @@
+org.jboss.wsf.stack.metro.config.MetroStackConfigFactory
\ No newline at end of file
Modified: stack/metro/trunk/pom.xml
===================================================================
--- stack/metro/trunk/pom.xml 2009-05-25 11:17:30 UTC (rev 10094)
+++ stack/metro/trunk/pom.xml 2009-05-25 11:18:36 UTC (rev 10095)
@@ -44,7 +44,7 @@
<!-- Properties -->
<properties>
- <jbossws.common.version>1.1.1-SNAPSHOT</jbossws.common.version>
+ <jbossws.common.version>1.2.0-SNAPSHOT</jbossws.common.version>
<jbossws.framework.version>3.2.0-SNAPSHOT</jbossws.framework.version>
<jbossws.spi.version>1.2.0-SNAPSHOT</jbossws.spi.version>
<jbossws.jboss500.version>3.2.0-SNAPSHOT</jbossws.jboss500.version>