JCA 11015 Mark interfaces remotable if @WebServiceProvider is on the implementation

git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@983849 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
bdaniel 2010-08-10 01:41:12 +00:00
commit 349f135aff

View file

@ -40,7 +40,6 @@ import org.apache.tuscany.sca.interfacedef.wsdl.WSDLInterface;
import org.apache.tuscany.sca.interfacedef.wsdl.WSDLInterfaceContract;
import org.apache.tuscany.sca.policy.Intent;
import org.apache.tuscany.sca.policy.PolicyFactory;
import org.oasisopen.sca.annotation.Remotable;
/**
* Process JAXWS annotations and updates the component type accordingly
@ -70,7 +69,11 @@ public class JAXWSProcessor extends BaseJavaClassVisitor {
}
if ( clazz.getAnnotation(WebServiceProvider.class) != null ) {
// TODO Apply @Remotable to interfaces here
// If the implementation is annotated with @WebServiceProvider,
// make all service interfaces remotable
for ( Service s : type.getServices() ) {
s.getInterfaceContract().getInterface().setRemotable(true);
}
// JCA 11015
}