Examples of UnifiedMetaData


Examples of org.jboss.ws.metadata.umdm.UnifiedMetaData

   /**
    * Construct a Service without WSDL meta data
    */
   ServiceImpl(QName serviceName)
   {
      UnifiedMetaData wsMetaData = new UnifiedMetaData(new ResourceLoaderAdapter());
      serviceMetaData = new ServiceMetaData(wsMetaData, serviceName);
      handlerRegistry = new HandlerRegistryImpl(serviceMetaData);
   }
View Full Code Here

Examples of org.jboss.ws.metadata.umdm.UnifiedMetaData

         JAXWSClientMetaDataBuilder builder = new JAXWSClientMetaDataBuilder();
         serviceMetaData = builder.buildMetaData(serviceName, wsdlURL, vfsRoot);
      }
      else
      {
         UnifiedMetaData wsMetaData = new UnifiedMetaData(vfsRoot);
         serviceMetaData = new ServiceMetaData(wsMetaData, serviceName);
         wsMetaData.addService(serviceMetaData);
      }

      handlerResolver = new HandlerResolverImpl();

      if (usRef != null)
View Full Code Here

Examples of org.jboss.ws.metadata.umdm.UnifiedMetaData

      if (!Remote.class.isAssignableFrom(seiClass))
         throw new WSException("A service endpoint interface should extend Remote");

      ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader();
      ResourceLoaderAdapter vfsRoot = new ResourceLoaderAdapter();
      um = new UnifiedMetaData(vfsRoot);
      um.setClassLoader(contextClassLoader);

      String seiName = WSDLUtils.getInstance().getJustClassName(seiClass.getName());
      if (serviceName == null)
         serviceName = seiName + "Service";
View Full Code Here

Examples of org.jboss.ws.metadata.umdm.UnifiedMetaData

public class UnifiedMetaDataDeploymentAspect extends DeploymentAspect
{
   @Override
   public void create(Deployment dep)
   {
      UnifiedMetaData umd = dep.getAttachment(UnifiedMetaData.class);
      if (umd == null)
      {
         if (dep.getType() == DeploymentType.JAXRPC_JSE)
         {
            JAXRPCServerMetaDataBuilder builder = new JAXRPCServerMetaDataBuilder();
View Full Code Here

Examples of org.jboss.ws.metadata.umdm.UnifiedMetaData

public class EagerInitializeDeploymentAspect extends DeploymentAspect
{
   @Override
   public void create(Deployment dep)
   {
      UnifiedMetaData umd = dep.getAttachment(UnifiedMetaData.class);
      if (umd == null)
         throw new IllegalStateException("Cannot obtain unified meta data");

      ClassLoader runtimeClassLoader = dep.getRuntimeClassLoader();
      if(null == runtimeClassLoader)
         throw new IllegalArgumentException("Runtime classloader may not be null");
     
      umd.setClassLoader(runtimeClassLoader);
      umd.eagerInitialize();
   }
View Full Code Here

Examples of org.jboss.ws.metadata.umdm.UnifiedMetaData

   {
      if (epMetaData == null)
      {
         ClassLoader ctxLoader = Thread.currentThread().getContextClassLoader();
         UnifiedVirtualFile vfsRoot = new ResourceLoaderAdapter();
         UnifiedMetaData wsMetaData = new UnifiedMetaData(vfsRoot);
         wsMetaData.setClassLoader(ctxLoader);

         ServiceMetaData serviceMetaData = new ServiceMetaData(wsMetaData, new QName(Constants.NS_JBOSSWS_URI, "AnonymousService"));
         wsMetaData.addService(serviceMetaData);

         QName anonQName = new QName(Constants.NS_JBOSSWS_URI, "Anonymous");
         QName anonPort = new QName(Constants.NS_JBOSSWS_URI, "AnonymousPort");
         epMetaData = new ClientEndpointMetaData(serviceMetaData, anonPort, anonQName, Type.JAXRPC);
         epMetaData.setStyle(Style.RPC);
View Full Code Here

Examples of org.jboss.ws.metadata.umdm.UnifiedMetaData

      jwsdl.setTargetNamespace(targetNamespace);
      jwsdl.addFeature(WSToolsConstants.WSTOOLS_FEATURE_RESTRICT_TO_TARGET_NS, true);
      jwsdl.setStyle(style);
     
      //manually generate the umd using tools
      UnifiedMetaData umd = new ToolsUnifiedMetaDataBuilder(seiClass, targetNamespace,
            null, sname, style, null, null).getUnifiedMetaData();
      jwsdl.setUmd(umd);
     
      //manually add policies to the umd
      ServiceMetaData serviceMetaData = umd.getServices().get(0);
      EndpointMetaData epMetaData = serviceMetaData.getEndpoints().get(0);
      addPolicy(new File("resources/tools/jbws1645/PortPolicy.txt"), PolicyScopeLevel.WSDL_PORT, epMetaData);
      addPolicy(new File("resources/tools/jbws1645/PortTypePolicy.txt"), PolicyScopeLevel.WSDL_PORT_TYPE, epMetaData);
      addPolicy(new File("resources/tools/jbws1645/BindingPolicy.txt"), PolicyScopeLevel.WSDL_BINDING, epMetaData);
     
View Full Code Here

Examples of org.jboss.ws.metadata.umdm.UnifiedMetaData

      jwsdl.setTargetNamespace(targetNamespace);
      jwsdl.addFeature(WSToolsConstants.WSTOOLS_FEATURE_RESTRICT_TO_TARGET_NS, true);
      jwsdl.setStyle(style);
     
      //manually generate the umd using tools
      UnifiedMetaData umd = new ToolsUnifiedMetaDataBuilder(seiClass, targetNamespace,
            null, sname, style, null, null).getUnifiedMetaData();
      jwsdl.setUmd(umd);
     
      //manually add policies to the umd
      ServiceMetaData serviceMetaData = umd.getServices().get(0);
      EndpointMetaData epMetaData = serviceMetaData.getEndpoints().get(0);
      addPolicy(new File("resources/tools/jbws1645/PortPolicy.txt"), PolicyScopeLevel.WSDL_PORT, epMetaData);
      addPolicy(new File("resources/tools/jbws1645/PortPolicy2.txt"), PolicyScopeLevel.WSDL_PORT, epMetaData);
      addPolicy(new File("resources/tools/jbws1645/PortTypePolicy2.txt"), PolicyScopeLevel.WSDL_PORT_TYPE, epMetaData);
      addPolicy(new File("resources/tools/jbws1645/PortTypePolicy.txt"), PolicyScopeLevel.WSDL_PORT_TYPE, epMetaData);
View Full Code Here

Examples of org.jboss.ws.metadata.umdm.UnifiedMetaData

public class PolicyMetaDataBuilderTestCase extends JBossWSTest
{
   public void testEndpointScopePolicies() throws Exception
   {
      UnifiedVirtualFile vfRoot = new URLLoaderAdapter(new File("resources/jaxws/wspolicy").toURL());
      UnifiedMetaData umd = new UnifiedMetaData(vfRoot);
     
      QName serviceName = new QName("http://org.jboss.ws/jaxws/endpoint", "TestService");
      ServiceMetaData serviceMetaData = new ServiceMetaData(umd, serviceName);
      QName portName = new QName("http://org.jboss.ws/jaxws/endpoint", "EndpointInterfacePort");
      QName portTypeName = new QName("http://org.jboss.ws/jaxws/endpoint", "EndpointInterface");
View Full Code Here

Examples of org.jboss.ws.metadata.umdm.UnifiedMetaData

      PolicyDeployer deployer = PolicyDeployer.newInstance(map);
      PolicyMetaDataBuilder builder = new PolicyMetaDataBuilder(deployer);
      builder.setToolMode(true);

      UnifiedVirtualFile vfRoot = new URLLoaderAdapter(new File("resources/jaxws/wspolicy").toURL());
      UnifiedMetaData umd = new UnifiedMetaData(vfRoot);
      ServiceMetaData serviceMetaData = new ServiceMetaData(umd, new QName("dummyServiceName"));
      umd.addService(serviceMetaData);
      EndpointMetaData epMetaData = new ServerEndpointMetaData(serviceMetaData, null, new QName("dummyPortName"), new QName("dummyPortTypeName"), Type.JAXWS);
      serviceMetaData.addEndpoint(epMetaData);
     
      builder.processPolicyAnnotations(epMetaData, TestMultipleEndpointPolicy.class);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.