[jboss-cvs] JBossAS SVN: r110750 - projects/specs/branches/jboss-jaxws-api_2.2_spec-JBWS-3223/src/main/java/javax/xml/ws/spi.
Richard Opalka
ropalka at redhat.com
Thu Feb 24 02:57:24 EST 2011
Just FYI Alessio,
Module.getSystemModuleLoader() method is deprecated and will be
removed soon.
---
/**
* @deprecated Use {@link #getBootModuleLoader()}. This method
will be removed.
*
* @return the boot module loader
*/
@Deprecated
public static ModuleLoader getSystemModuleLoader() {
return getBootModuleLoader();
}
---
Rio
On 02/23/2011 12:04 PM, jboss-cvs-commits at lists.jboss.org wrote:
> Author: alessio.soldano at jboss.com
> Date: 2011-02-23 06:04:29 -0500 (Wed, 23 Feb 2011)
> New Revision: 110750
>
> Modified:
> projects/specs/branches/jboss-jaxws-api_2.2_spec-JBWS-3223/src/main/java/javax/xml/ws/spi/FactoryFinder.java
> Log:
> [JBWS-3223] org.jboss.ws.cxf.jbossws-cxf-client renamed to stack neutral org.jboss.ws.jaxws-client
>
>
> Modified: projects/specs/branches/jboss-jaxws-api_2.2_spec-JBWS-3223/src/main/java/javax/xml/ws/spi/FactoryFinder.java
> ===================================================================
> --- projects/specs/branches/jboss-jaxws-api_2.2_spec-JBWS-3223/src/main/java/javax/xml/ws/spi/FactoryFinder.java 2011-02-23 10:06:27 UTC (rev 110749)
> +++ projects/specs/branches/jboss-jaxws-api_2.2_spec-JBWS-3223/src/main/java/javax/xml/ws/spi/FactoryFinder.java 2011-02-23 11:04:29 UTC (rev 110750)
> @@ -16,6 +16,7 @@
>
> class FactoryFinder {
> m
> + private static final String JBOSS_JAXWS_CLIENT_MODULE = "org.jboss.ws.jaxws-client";
> /**
> * Creates an instance of the specified class using the specified
> *<code>ClassLoader</code> object.
> @@ -126,11 +127,11 @@
> Class<?> moduleIdentifierClass = Class.forName("org.jboss.modules.ModuleIdentifier");
> Class<?> moduleLoaderClass = Class.forName("org.jboss.modules.ModuleLoader");
> Object moduleLoader = moduleClass.getMethod("getSystemModuleLoader").invoke(null);
> - Object moduleIdentifier = moduleIdentifierClass.getMethod("create", String.class).invoke(null, "org.jboss.ws.cxf.jbossws-cxf-client");
> + Object moduleIdentifier = moduleIdentifierClass.getMethod("create", String.class).invoke(null, JBOSS_JAXWS_CLIENT_MODULE);
> Object module = moduleLoaderClass.getMethod("loadModule", moduleIdentifierClass).invoke(moduleLoader, moduleIdentifier);
> moduleClassLoader = (ClassLoader)moduleClass.getMethod("getClassLoader").invoke(module);
> } catch (ClassNotFoundException e) {
> - //ignore, JBoss Modules not be available at all
> + //ignore, JBoss Modules might not be available at all
> } catch (Exception e) {
> throw new WebServiceException(e);
> }
>
> _______________________________________________
> jboss-cvs-commits mailing list
> jboss-cvs-commits at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jboss-cvs-commits
--
Richard Opalka
ropalka at redhat.com
JBoss, by Red Hat
Office: +420 222 365 200
Mobile: +420 731 186 942
More information about the jboss-cvs-commits
mailing list