Examples of invalidate()


Examples of org.impalaframework.web.servlet.wrapper.session.StateProtectingHttpSession.invalidate()

        replay(session);

        StateProtectingHttpSession wrappedSession = new StateProtectingHttpSession(session, webAttributeQualifier, applicationId, moduleName, ClassUtils.getDefaultClassLoader());

        assertTrue(wrappedSession.isValid());
        wrappedSession.invalidate();
        assertFalse(wrappedSession.isValid());
       
        verify(session);
    }
   
View Full Code Here

Examples of org.jboss.metadata.plugins.loader.memory.MemoryMetaDataLoader.invalidate()

   {
      MemoryMetaDataLoader delegate = threadLocal.get();
      if (delegate == null)
         super.invalidate();
      else
         delegate.invalidate();
   }

   public AnnotationsItem retrieveAnnotations()
   {
      MemoryMetaDataLoader delegate = threadLocal.get();
View Full Code Here

Examples of org.jboss.metadata.spi.retrieval.ValidTime.invalidate()

      assertTrue(time2.getValidTime() >= time1.getValidTime());
     
      time1.invalidate();
      assertTrue(time1.getValidTime() > time2.getValidTime());

      time2.invalidate();
      assertTrue(time2.getValidTime() > time1.getValidTime());

      ValidTime time3 = new ValidTime();
      assertTrue(time3.getValidTime() >= time1.getValidTime());
      assertTrue(time3.getValidTime() >= time2.getValidTime());
View Full Code Here

Examples of org.jboss.metadata.spi.retrieval.basic.BasicAnnotationItem.invalidate()

/* 161 */     if (old != null)
/*     */     {
/* 163 */       result = old.getAnnotation();
/* 164 */       if (result == annotation)
/* 165 */         return result;
/* 166 */       old.invalidate();
/*     */     }
/*     */
/* 169 */     BasicAnnotationItem item = new BasicAnnotationItem(this, annotation);
/* 170 */     this.annotations.put(annotationType.getName(), item);
/* 171 */     invalidateAnnotationsItem();
View Full Code Here

Examples of org.jboss.metadata.spi.retrieval.basic.BasicAnnotationsItem.invalidate()

   protected void invalidateAnnotationsItem()
   {
      BasicAnnotationsItem temp = cachedAnnotationsItem;
      if (temp != null)
      {
         temp.invalidate();
         cachedAnnotationsItem = null;
      }
   }

   /**
 
View Full Code Here

Examples of org.jboss.metadata.spi.retrieval.basic.BasicMetaDataItem.invalidate()

/* 275 */     if (old != null)
/*     */     {
/* 277 */       result = old.getValue();
/* 278 */       if (result == metaData)
/* 279 */         return result;
/* 280 */       old.invalidate();
/*     */     }
/* 282 */     BasicMetaDataItem item = new BasicMetaDataItem(this, type.getName(), metaData);
/* 283 */     this.metaDataByName.put(type.getName(), item);
/* 284 */     invalidateMetaDatasItem();
/* 285 */     invalidate();
View Full Code Here

Examples of org.jboss.metadata.spi.retrieval.basic.BasicMetaDatasItem.invalidate()

   protected void invalidateMetaDatasItem()
   {
      BasicMetaDatasItem temp = cachedMetaDatasItem;
      if (temp != null)
      {
         temp.invalidate();
         cachedMetaDatasItem = null;
      }
   }

   /**
 
View Full Code Here

Examples of org.jboss.weld.context.ConversationContext.invalidate()

   {
      super.detach();
      ConversationContext conversationContext = instance().select(HttpConversationContext.class).get();
      try
      {
         conversationContext.invalidate();
      }
      catch (Exception e)
      {
      }
      try
View Full Code Here

Examples of org.jboss.weld.context.ManagedContext.invalidate()

    public void destroyContext(Context context) {
        context = ForwardingContext.unwrap(context);
        if (context instanceof ManagedContext) {
            ManagedContext managedContext = (ManagedContext) context;
            managedContext.invalidate();
            managedContext.deactivate();
            managedContext.activate();
        } else if (context instanceof ApplicationContext) {
            ((ApplicationContext) context).invalidate();
        } else {
View Full Code Here

Examples of org.jboss.weld.context.RequestContext.invalidate()

   public TestContainer stopContainer()
   {
      RequestContext requestContext = instance().select(RequestContext.class, UnboundLiteral.INSTANCE).get();
      if (requestContext.isActive())
      {
         requestContext.invalidate();
         requestContext.deactivate();
      }
     
      // TODO deactivate the conversation context
     
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.