Examples of resolve()


Examples of org.jboss.aesh.io.Resource.resolve()

            setInput(fileContent);
            afterAttach();
        }
        else if(arguments != null && arguments.size() > 0) {
            Resource f = arguments.get(0);
            f = f.resolve(commandInvocation.getAeshContext().getCurrentWorkingDirectory()).get(0);
            if(f.isLeaf()) {
                setInput(f.read(), f.getName());
                afterAttach();
            }
            else if(f.isDirectory()) {
View Full Code Here

Examples of org.jboss.arquillian.drone.impl.DroneTestEnricher.resolve()

      Object instance = new MethodEnrichedClass();
      Method testMethod = MethodEnrichedClass.class.getMethod("testMethodEnrichment", MockDroneInstance.class);

      manager.inject(testEnricher);
      Object[] parameters = testEnricher.resolve(testMethod);
      testMethod.invoke(instance, parameters);
   }

   static class EnrichedClass
   {
View Full Code Here

Examples of org.jboss.arquillian.impl.core.ManagerImpl.resolve()

  
   @Test
   public void shouldResolveToNullIfNoActiveContexts() throws Exception
   {
      ManagerImpl manager = ManagerBuilder.from().create();
      Assert.assertNull(manager.resolve(Object.class));
   }
  
   @Test
   public void shouldResolveToNullContextIfNotFound() throws Exception
   {
View Full Code Here

Examples of org.jboss.arquillian.spi.TestEnricher.resolve()

      Object instance = new MethodEnrichedClass();
      Method testMethod = MethodEnrichedClass.class.getMethod("testMethodEnrichment", MockDroneInstance.class);

      manager.inject(testEnricher);
      Object[] parameters = testEnricher.resolve(testMethod);
      testMethod.invoke(instance, parameters);
   }

   static class EnrichedClass
   {
View Full Code Here

Examples of org.jboss.arquillian.test.spi.TestEnricher.resolve()

        // enriched did the instantiation
        assertEventFired(BeforeDroneInstantiated.class, 2);
        assertEventFired(AfterDroneInstantiated.class, 2);

        Object[] dummyParameters = testEnricher.resolve(testDummyMethod);

        assertEventFired(BeforeDroneInstantiated.class, 2);
        assertEventFired(AfterDroneInstantiated.class, 2);

        testDummyMethod.invoke(instance, dummyParameters);
View Full Code Here

Examples of org.jboss.as.controller.PathElement.resolve()

                final ServiceName hqServiceName = MessagingServices.getHornetQServiceName(queue.getServer());
                String[] jndiBindings = null;
                final ModelNode destination = queue.getDestination();
                if (destination.hasDefined(ENTRIES.getName())) {
                    final ModelNode entries = destination.resolve().get(ENTRIES.getName());
                    jndiBindings = JndiEntriesAttribute.getJndiBindings(entries);
                }
                final String selector = destination.hasDefined(SELECTOR.getName()) ? destination.get(SELECTOR.getName()).resolve().asString() : null;
                final boolean durable = destination.hasDefined(DURABLE.getName()) ? destination.get(DURABLE.getName()).resolve().asBoolean() : false;
View Full Code Here

Examples of org.jboss.dependency.spi.DependencyItem.resolve()

      if (unresolved.isEmpty() == false)
      {
         for (Iterator i = unresolved.iterator(); i.hasNext();)
         {
            DependencyItem item = (DependencyItem) i.next();
            if (state.equals(item.getWhenRequired()) && item.resolve(controller) == false)
            {
               resolved = false;
               break;
            }
         }
View Full Code Here

Examples of org.jboss.dmr.ModelNode.resolve()

        PORT.validateAndSet(operation, remoteDC);
        HOST.validateAndSet(operation, remoteDC);
        if (operation.has(SECURITY_REALM)) {
            ModelNode securityRealm = operation.require(SECURITY_REALM);
            dc.get(REMOTE, SECURITY_REALM).set(securityRealm);
            hostControllerInfo.setRemoteDomainControllerSecurityRealm(securityRealm.resolve().asString());
        }

        if (dc.has(LOCAL)) {
            dc.remove(LOCAL);
        }
View Full Code Here

Examples of org.jboss.ejb3.endpoint.deployers.EndpointResolver.resolve()

      Ejb3Registrar registrar = Ejb3RegistrarLocator.locateRegistrar();

      // Get the resolver
      EndpointResolver resolver = registrar.lookup(MC_BIND_NAME_ENDPOINT_RESOLVER, EndpointResolver.class);
      this.ejbClassName = descriptor.getBeanClass().getSimpleName();
      endpointMcBindName = resolver.resolve(deploymentUnit, ejbClassName);
      this.stateful = descriptor.isStateful();
   }

   @SuppressWarnings("unchecked")
   public <S> S getBusinessObject(Class<S> businessInterfaceType)
View Full Code Here

Examples of org.jboss.forge.addon.resource.util.ResourcePathResolver.resolve()

   @Override
   public List<Resource<?>> resolveChildren(String path)
   {
      ResourcePathResolver resolver = new ResourcePathResolver(getResourceFactory(), this, path);
      return resolver.resolve();
   }

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