Examples of removeContext()


Examples of org.jboss.deployers.spi.structure.StructureMetaData.removeContext()

      assertEquals(getExpected(one, two, three), structure.getContexts());
      assertEquals(one, structure.getContext("one"));
      assertEquals(two, structure.getContext("two"));
      assertEquals(three, structure.getContext("three"));
     
      structure.removeContext(one);
      assertEquals(getExpected(two, three), structure.getContexts());
      assertNull(structure.getContext("one"));
      assertEquals(two, structure.getContext("two"));
      assertEquals(three, structure.getContext("three"));
     
View Full Code Here

Examples of org.jboss.deployers.spi.structure.StructureMetaData.removeContext()

      assertEquals(getExpected(two, three), structure.getContexts());
      assertNull(structure.getContext("one"));
      assertEquals(two, structure.getContext("two"));
      assertEquals(three, structure.getContext("three"));
     
      structure.removeContext(two);
      assertEquals(getExpected(three), structure.getContexts());
      assertNull(structure.getContext("one"));
      assertNull(structure.getContext("two"));
      assertEquals(three, structure.getContext("three"));
     
View Full Code Here

Examples of org.jboss.deployers.spi.structure.StructureMetaData.removeContext()

      assertEquals(getExpected(three), structure.getContexts());
      assertNull(structure.getContext("one"));
      assertNull(structure.getContext("two"));
      assertEquals(three, structure.getContext("three"));
     
      structure.removeContext(three);
      assertEquals(getExpected(), structure.getContexts());
      assertNull(structure.getContext("one"));
      assertNull(structure.getContext("two"));
      assertNull(structure.getContext("three"));
View Full Code Here

Examples of org.jboss.deployers.spi.structure.StructureMetaData.removeContext()

      structure.addContext(one);
      assertEquals(getExpected(one), structure.getContexts());
      assertEquals(one, structure.getContext("one"));
     
      // Removing a context not present is ok
      structure.removeContext(two);
   }
  
   public void testRemoveContextErrors()
   {
      StructureMetaData structure = createDefault();
View Full Code Here

Examples of org.jboss.deployers.spi.structure.StructureMetaData.removeContext()

      assertEmpty(structure.getContexts());
     
      try
      {
         ContextInfo context = null;
         structure.removeContext(context);
         fail("Should not be here!");
      }
      catch (Exception e)
      {
         checkThrowable(IllegalArgumentException.class, e);
View Full Code Here

Examples of org.jboss.virtual.spi.registry.VFSRegistry.removeContext()

         VirtualFileHandler contextHandler = context.getRoot();
         // the file is the context root, hence possible registry candidate
         if (fileHandler.equals(contextHandler))
         {
            VFSRegistry registry = VFSRegistry.getInstance();
            registry.removeContext(context);

            TempStore store = context.getTempStore();
            if (store != null)
            {
               store.clear();
View Full Code Here

Examples of org.jboss.virtual.spi.registry.VFSRegistry.removeContext()

      if (context != null && createNew == false)
         return context.getVFS();

      if (context != null)
      {
         registry.removeContext(context);
         context.cleanup();
      }

      context = factory.getVFS(rootURI); // create new
      VFSRegistry.getInstance().addContext(context);
View Full Code Here

Examples of org.jboss.virtual.spi.registry.VFSRegistry.removeContext()

         VirtualFileHandler contextHandler = context.getRoot();
         // the file is the context root, hence possible registry candidate
         if (fileHandler.equals(contextHandler))
         {
            VFSRegistry registry = VFSRegistry.getInstance();
            registry.removeContext(context);
         }
      }
      catch (Exception e)
      {
         log.debug("Exception removing cached context, file=" + file, e);
View Full Code Here

Examples of org.jbpm.pvm.internal.env.Environment.removeContext()

        throw e;
      } finally {
        atomicOperations = null;
       
        if (executionContext!=null) {
          environment.removeContext(executionContext);
        }
        if (originalExecutionContext!=null) {
          environment.setContext(originalExecutionContext);
        }
      }
View Full Code Here

Examples of org.jbpm.pvm.internal.env.Environment.removeContext()

    environment.setContext(taskContext);
    try {
      Collection<Message> messages = mailProducer.produce(execution);
      environment.get(MailSession.class).send(messages);
    } finally {
      environment.removeContext(taskContext);
    }
  }

  public void setMailProducer(MailProducer mailProducer) {
    this.mailProducer = mailProducer;
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.