Commit b5acada7 authored by Lionel Seinturier's avatar Lionel Seinturier
Browse files

Case with generic proxy interfaces (contributed by Philippe.)

parent 8e47b3c8
......@@ -58,6 +58,13 @@
<isOptional>false</isOptional>
<isCollection>false</isCollection>
</interfaceType>
<!-- interfaceType>
<name>if</name>
<signature>example.proxyparameters.ImplementationFactory</signature>
<isClient>false</isClient>
<isOptional>false</isOptional>
<isCollection>false</isCollection>
</interfaceType -->
</interfaceTypes>
<controllerDesc>scaPrimitive</controllerDesc>
<contentDesc>example.proxyparameters.CImpl</contentDesc>
......
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE definition PUBLIC "-//objectweb.org//DTD Fractal ADL 2.0//EN" "classpath://org/objectweb/fractal/adl/xml/standard.dtd">
<!-- File to be removed once the bug with generic proxy interfaces is fixed -->
<!-- or we use a version of Juliac which supports the components command -->
<!-- line option to be able to launch this example from within Eclipse for -->
<!-- debuging purpose. -->
<definition name="example.proxyparameters.C" >
<interface name="r" signature="example.proxyparameters.I" role="server" />
<interface name="if" signature="example.proxyparameters.ImplementationFactory" role="server" />
<content class="example.proxyparameters.CImpl" />
<controller desc="scaPrimitive" />
</definition>
package example.proxyparameters;
public class CImpl implements I {
public class CImpl
implements
I
, ImplementationFactory<Implementation>
{
public void foo1( Param.Inner pi ) {}
public byte[] foo2( Object o ) { return null; }
public void foo3() {}
public void createImplementation( Implementation implementation ) {
}
}
package example.proxyparameters;
import org.osoa.sca.annotations.Service;
/**
* @author Philippe Merle <philippe.merle@inria.fr>
* @since 1.3
*/
@Service
public interface ImplementationFactory<ImplementationType extends Implementation> {
public void createImplementation( ImplementationType implementation );
}
interface Implementation {}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment