Examples of ResourceLoaderAdapter


Examples of org.jboss.wsf.common.ResourceLoaderAdapter

   /**
    * 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.wsf.common.ResourceLoaderAdapter

      //Check if it extends Remote Interface
      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)
View Full Code Here

Examples of org.jboss.wsf.common.ResourceLoaderAdapter

   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

Examples of org.jboss.wsf.common.ResourceLoaderAdapter

   public EndpointMetaData getEndpointMetaData()
   {
      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);
View Full Code Here

Examples of org.jboss.wsf.common.ResourceLoaderAdapter

   /**
    * 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.wsf.common.ResourceLoaderAdapter

   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

Examples of org.jboss.wsf.common.ResourceLoaderAdapter

      // Try to get the URL as resource
      if (configURL == null)
      {
         try
         {
            configURL = new ResourceLoaderAdapter().findChild(configFile).toURL();
         }
         catch (IOException ex)
         {
            // ignore
         }
View Full Code Here

Examples of org.jboss.wsf.common.ResourceLoaderAdapter

      //Check if it extends Remote Interface
      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)
View Full Code Here

Examples of org.jboss.wsf.common.ResourceLoaderAdapter

   public EndpointMetaData getEndpointMetaData()
   {
      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);
View Full Code Here

Examples of org.jboss.wsf.common.ResourceLoaderAdapter

   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
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.