Mail Archive Home | fractal-commits List | May 2008 Index
| <-- Date Index --> | <-- Thread Index --> |
apply patch as proposed by Damien Fournier: the classes defining the java types for client/server interface might be avaibable in the context classloader; this feature is expecially useful for the JBI plugin under development.
--- sandbox/ervalerio/fractal-bf/connectors/soap-cxf/src/main/java/org/objectweb/fractal/bf/connectors/ws/WsConnector.java 2008-05-30 08:30:25 UTC (rev 7813)
+++ sandbox/ervalerio/fractal-bf/connectors/soap-cxf/src/main/java/org/objectweb/fractal/bf/connectors/ws/WsConnector.java 2008-05-30 08:32:27 UTC (rev 7814)
@@ -76,25 +76,6 @@
}
/**
- * @throws BindingFactoryException
- * @see org.objectweb.fractal.bf.BindingFactoryPlugin#getStubGenerationParameters(java.util.Map)
- */
- public String[] getStubGenerationParameters(Map<String, String> bindHints)
- throws BindingFactoryException {
- if (bindHints == null) {
- throw new BindingFactoryException("Binding hints were null");
- }
- String address = bindHints.get(WsConnectorConstants.ADDRESS);
- if (address == null) {
- throw new BindingFactoryException(
- "Missing parameter for WS/CXF plugin (expected:"
- + WsConnectorConstants.ADDRESS + ")");
- }
- String[] params = new String[] { address };
- return params;
- }
-
- /**
* @see org.objectweb.fractal.bf.BindingFactoryPlugin#createSkel(java.lang.String,
* java.lang.Object, org.objectweb.fractal.api.Component,
* org.objectweb.fractal.bf.ExportHints)
@@ -127,7 +108,10 @@
InterfaceType it = (InterfaceType) ((Interface) serverItf)
.getFcItfType();
- Class<?> serviceClass = Class.forName(it.getFcItfSignature());
+ Class<?> serviceClass = Thread.currentThread()
+ .getContextClassLoader().loadClass(it.getFcItfSignature());
+ log.finest("Service class: " + serviceClass
+ + " correctly recovered from context class loader");
wsServiceAttributes.configureWsWith(address, serviceClass);
--- sandbox/ervalerio/fractal-bf/core/src/main/java/org/objectweb/fractal/bf/proxies/AbstractStubComponentFactory.java 2008-05-30 08:30:25 UTC (rev 7813)
+++ sandbox/ervalerio/fractal-bf/core/src/main/java/org/objectweb/fractal/bf/proxies/AbstractStubComponentFactory.java 2008-05-30 08:32:27 UTC (rev 7814)
@@ -60,7 +60,8 @@
Class<?> clazz = null;
try {
- clazz = Class.forName(iType.getFcItfSignature());
+ clazz = Thread.currentThread().getContextClassLoader().loadClass(
+ iType.getFcItfSignature());
} catch (ClassNotFoundException e) {
e.printStackTrace();
throw new InstantiationException(
| <-- Date Index --> | <-- Thread Index --> |
Powered by MHonArc.
Copyright © 2006-2007, OW2 Consortium | contact | webmaster.