Package org.jboss.wsf.common

Examples of org.jboss.wsf.common.ResourceLoaderAdapter


/* 110 */     throw new WSException("Cannot build meta data: " + ex.getMessage(), ex);
/*     */   }
/*     */
/*     */   public ServiceMetaData buildMetaData(QName serviceName, URL wsdlURL)
/*     */   {
/* 118 */     return buildMetaData(serviceName, wsdlURL, new ResourceLoaderAdapter());
/*     */   }
View Full Code Here


/*     */   public ServiceMetaData buildMetaData(QName serviceQName, URL wsdlURL, JavaWsdlMapping javaWsdlMapping, WSSecurityConfiguration securityConfig, UnifiedServiceRefMetaData usrMetaData, ClassLoader loader)
/*     */   {
/* 104 */     if (this.log.isDebugEnabled()) this.log.debug("START buildMetaData: [service=" + serviceQName + "]");
/*     */     try
/*     */     {
/* 107 */       ResourceLoaderAdapter vfsRoot = new ResourceLoaderAdapter(loader);
/*     */
/* 109 */       UnifiedMetaData wsMetaData = new UnifiedMetaData(vfsRoot);
/* 110 */       wsMetaData.setClassLoader(loader);
/*     */
/* 112 */       ServiceMetaData serviceMetaData = new ServiceMetaData(wsMetaData, serviceQName);
View Full Code Here

   public ServiceDelegateImpl(URL wsdlURL, QName serviceName, Class serviceClass)
   {
      // If this Service was constructed through the ServiceObjectFactory
      // this thread local association should be available
      usRef = ServiceObjectFactoryJAXWS.getServiceRefAssociation();
      UnifiedVirtualFile vfsRoot = (usRef != null ? vfsRoot = usRef.getVfsRoot() : new ResourceLoaderAdapter());

      // Verify wsdl access if this is not a generic Service
      if (wsdlURL != null && serviceClass != Service.class)
      {
         try
View Full Code Here

/* 105 */   private List<QName> annotatedPorts = new ArrayList();
/*     */
/*     */   public ServiceDelegateImpl(URL wsdlURL, QName serviceName, Class serviceClass)
/*     */   {
/*     */     UnifiedVirtualFile vfsRoot;
/* 112 */     UnifiedVirtualFile vfsRoot = this.usRef != null ? (vfsRoot = this.usRef.getVfsRoot()) : new ResourceLoaderAdapter();
/*     */
/* 115 */     if ((wsdlURL != null) && (serviceClass != Service.class))
/*     */     {
/*     */       try
/*     */       {
View Full Code Here

/*     */
/* 166 */     if (configURL == null)
/*     */     {
/*     */       try
/*     */       {
/* 170 */         configURL = new ResourceLoaderAdapter().findChild(configFile).toURL();
/*     */       }
/*     */       catch (IOException ex)
/*     */       {
/*     */       }
/*     */
View Full Code Here

/*     */   public EndpointMetaData getEndpointMetaData()
/*     */   {
/* 208 */     if (this.epMetaData == null)
/*     */     {
/* 210 */       ClassLoader ctxLoader = Thread.currentThread().getContextClassLoader();
/* 211 */       UnifiedVirtualFile vfsRoot = new ResourceLoaderAdapter();
/* 212 */       UnifiedMetaData wsMetaData = new UnifiedMetaData(vfsRoot);
/* 213 */       wsMetaData.setClassLoader(ctxLoader);
/*     */
/* 215 */       ServiceMetaData serviceMetaData = new ServiceMetaData(wsMetaData, new QName("http://www.jboss.org/jbossws", "AnonymousService"));
/* 216 */       wsMetaData.addService(serviceMetaData);
View Full Code Here

/*     */   {
/*  84 */     if (!Remote.class.isAssignableFrom(this.seiClass)) {
/*  85 */       throw new WSException("A service endpoint interface should extend Remote");
/*     */     }
/*  87 */     ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader();
/*  88 */     ResourceLoaderAdapter vfsRoot = new ResourceLoaderAdapter();
/*  89 */     this.um = new UnifiedMetaData(vfsRoot);
/*  90 */     this.um.setClassLoader(contextClassLoader);
/*     */
/*  92 */     WSDLUtils.getInstance(); String seiName = WSDLUtils.getJustClassName(this.seiClass.getName());
/*  93 */     if (this.serviceName == null) {
View Full Code Here

/*     */
/*  80 */     this.messageStream.println("Output directory: " + this.outputDir.getAbsolutePath());
/*  81 */     this.messageStream.println("Source directory: " + sourceDir.getAbsolutePath());
/*     */
/*  84 */     ClassLoader loader = new URLClassLoader(new URL[0], this.loader);
/*  85 */     UnifiedMetaData umd = new UnifiedMetaData(new ResourceLoaderAdapter(loader));
/*  86 */     umd.setClassLoader(loader);
/*     */
/*  88 */     ChainedWritableWrapperGenerator generator = new ChainedWritableWrapperGenerator();
/*  89 */     if (this.generateSource)
/*  90 */       generator.add(new SourceWrapperGenerator(loader, this.messageStream), sourceDir);
View Full Code Here

   public ServiceDelegateImpl(URL wsdlURL, QName serviceName, Class serviceClass)
   {
      // If this Service was constructed through the ServiceObjectFactory
      // this thread local association should be available
      usRef = ServiceObjectFactoryJAXWS.getServiceRefAssociation();
      UnifiedVirtualFile vfsRoot = (usRef != null ? vfsRoot = usRef.getVfsRoot() : new ResourceLoaderAdapter());

      // Verify wsdl access if this is not a generic Service
      if (wsdlURL != null && serviceClass != Service.class)
      {
         try
View Full Code Here

{
   public void testWithJar() throws Exception
   {
      //Getting the classloader for UnifiedVirtualFile which lives in SPI -> external jar (from the maven repo)
      ClassLoader cl = UnifiedVirtualFile.class.getClassLoader();
      ResourceLoaderAdapter ula = new ResourceLoaderAdapter(cl);
     
      UnifiedVirtualFile deployment = ula.findChild("org/jboss/wsf/spi/deployment/");
      assertNotNull(deployment);
      assertTrue(deployment.toURL().toExternalForm().contains("jar!")); //check we got a URL to a jar
      assertEquals("deployment/", deployment.getName());
      List<UnifiedVirtualFile> children = deployment.getChildren();
      assertNotNull(children);
View Full Code Here

TOP

Related Classes of org.jboss.wsf.common.ResourceLoaderAdapter

Copyright © 2018 www.massapicom. 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.