Examples of unwrap()


Examples of org.infinispan.schematic.internal.document.ArrayEditor.unwrap()

                                    + this;
            parent = parent.getDocument(fieldName);
        }
        if (parent instanceof ArrayEditor) {
            ArrayEditor parentEditor = (ArrayEditor)parent;
            parent = parentEditor.unwrap();
        }
        return (MutableArray)parent;
    }

    protected Collection<?> cloneValues( Collection<?> values ) {
View Full Code Here

Examples of org.jboss.arquillian.graphene.proxy.GrapheneProxyInstance.unwrap()

        } else {
            proxy.registerInterceptor(new InFrameInterceptor(nameOrId));
        }
        if (!DO_NOT_ENRICH_FURTHER.contains(fieldType)) {
            enrichRecursivelyGrapheneProxyInstances(proxy, nameOrId, index, field);
            enrichRecursivelyGrapheneProxyInstances(proxy.unwrap(), nameOrId, index, field);
        }
    }

    private void enrichRecursivelyGrapheneProxyInstances(Object objectToEnrich, String nameOrId, int index, Field field)
        throws ClassNotFoundException, IllegalArgumentException, IllegalAccessException {
View Full Code Here

Examples of org.jboss.errai.aerogear.api.pipeline.impl.AuthenticatorAdapter.unwrap()

  }

  public <T> Pipe<T> createPipe(Class<T> type, Config config, Authenticator authenticator) {
    AuthenticatorAdapter adapter = (AuthenticatorAdapter) authenticator;
    JavaScriptObject object =
            setup(config.name, config.type.getName(), config.recordId, config.baseUrl, adapter.unwrap());
    return new PipeAdapter<T>(type, object);
  }

  public static class Config {
    private String name;
View Full Code Here

Examples of org.jboss.metatype.api.values.MetaValueFactory.unwrap()

      ArrayValue idsArray = ArrayValue.class.cast(allThreadIdsMV);
      assertTrue(idsArray.getLength() > 10);
      SimpleValue tid0SV = SimpleValue.class.cast(idsArray.getValue(0));
      ManagedProperty currentThreadCpuTime = mo.getProperty("currentThreadCpuTime");
      assertNotNull(currentThreadCpuTime);
      long x = (Long) metaValueFactory.unwrap(currentThreadCpuTime.getValue());
      assertTrue(x > 1000);
      ManagedProperty currentThreadUserTime = mo.getProperty("currentThreadUserTime");
      assertNotNull(currentThreadUserTime);
      ManagedProperty daemonThreadCount = mo.getProperty("daemonThreadCount");
      assertNotNull(daemonThreadCount);
View Full Code Here

Examples of org.jboss.ws.tools.helpers.ReturnTypeUnwrapper.unwrap()

      JBossXSModel xsmodel = WSDLUtils.getSchemaModel(wsdl.getWsdlTypes());
      xt = xsmodel.getTypeDefinition(xmlType.getLocalPart(), xmlType.getNamespaceURI());

      ReturnTypeUnwrapper unwrapper = new ReturnTypeUnwrapper(xmlType, xsmodel, isWrapped());
      if (unwrapper.unwrap())
      {
         // Need to generate wrapper class as well.
         if (xt instanceof XSComplexTypeDefinition)
            generateJavaSource((XSComplexTypeDefinition)xt, xsmodel, containingElement);
View Full Code Here

Examples of org.jclouds.View.unwrap()

            typeEncounter.register(new InjectionListener<I>() {
               @Override
               public void afterInjection(Object object) {
                  final View view = (View) object;
                  final Iterable<ViewMBean> viewMamanagementBeans  = viewManagementOf(view);
                  final Closer closer = view.unwrap().utils().injector().getInstance(Closer.class);
                  //We get the name from the view and not from the view management object to avoid proxy issues.
                  final String name = view.unwrap().getName();
                  managementContext.register(view);

                  //Manage the created management view objects to the context.
View Full Code Here

Examples of org.jclouds.abiquo.domain.cloud.VirtualDatacenter.unwrap()

      PrivateNetwork network = EasyMock.createMock(PrivateNetwork.class);

      VirtualDatacenter vdc = VirtualDatacenter.builder(context, datacenter, enterprise) //
            .network(network) //
            .name("mock").build();
      vdc.unwrap().setId(5);

      return vdc;
   }

   @SuppressWarnings("unchecked")
View Full Code Here

Examples of org.jclouds.abiquo.domain.infrastructure.Datacenter.unwrap()

   public void testDatacenterToLocation() {
      ApiContext<AbiquoApi> context = EasyMock.createMock(ApiContext.class);
      DatacenterToLocation function = new DatacenterToLocation();

      Datacenter datacenter = Datacenter.builder(context).name("dc").location("New York").build();
      datacenter.unwrap().setId(5);
      Location location = function.apply(datacenter);

      assertEquals(location.getId(), "5");
      assertEquals(location.getScope(), LocationScope.REGION);
   }
View Full Code Here

Examples of org.jclouds.apis.Compute.unwrap()

      replay(managementContext);

      Compute compute = ContextBuilder.newBuilder(new JcloudsTestComputeProviderMetadata()).name("testname")
              .credentials("user", "password")
              .modules(ImmutableSet.<Module>builder().add(new ManagementLifecycle(managementContext)).build()).build(Compute.class);
      compute.unwrap().close();
      verify(managementContext);
   }

}
View Full Code Here

Examples of org.jclouds.blobstore.BlobStoreContext.unwrap()

      BlobStoreContext context = (BlobStoreContext) ContextBuilder.newBuilder(location)
          .credentials(accessKey, secretKey)
          .buildView(BlobStoreContext.class);

      storage = context.getBlobStore();
      swift = context.unwrap();
      swift.getApi().createContainer(bucketName);

    }catch(Exception e){
      System.out.println("Cannot connect with RackSpace.");
      //e.printStackTrace();
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.