Package javax.enterprise.context.spi

Examples of javax.enterprise.context.spi.Contextual.destroy()


        assertTrue(contextual instanceof Serializable); // we also test CDI-24 here
        Instance instance = storage.remove(contextual);
        if (instance != null) {
            @SuppressWarnings("rawtypes")
            Contextual rawContextual = contextual;
            rawContextual.destroy(instance.instance, instance.ctx);
        }
    }
}
View Full Code Here


                    // therefore we need completely drop the type information :( 
                    Contextual contextual = componentEntry.getKey();
                    Object instance = componentEntry.getValue();
                    CreationalContext creational = creationalContextMap.get(contextual);
                   
                    contextual.destroy(instance, creational);
                }
            }
        }
    }
       
View Full Code Here

                    // therefore we need completely drop the type information :(
                    Contextual contextual = beanManager.getPassivationCapableBean(beanId);
                    Object instance = componentEntry.getValue();
                    CreationalContext creational = creationalContextMap.get(beanId);

                    contextual.destroy(instance, creational);
                }
            }
        }
    }
View Full Code Here

    public void destroy(Contextual<?> contextual) {
        assertTrue(contextual instanceof Serializable); // we also test CDI-24 here
        Instance instance = storage.remove(contextual);
        @SuppressWarnings("rawtypes")
        Contextual rawContextual = contextual;
        rawContextual.destroy(instance.instance, instance.ctx);
    }
}
View Full Code Here

    @SuppressWarnings("unchecked")
    public void destroy(Contextual<?> contextual) {
        Instance instance = storage.remove(contextual);
        @SuppressWarnings("rawtypes")
        Contextual rawContextual = contextual;
        rawContextual.destroy(instance.instance, instance.ctx);
    }
}
View Full Code Here

    @SuppressWarnings("unchecked")
    public void destroy(Contextual<?> contextual) {
        Instance instance = storage.remove(contextual);
        @SuppressWarnings("rawtypes")
        Contextual rawContextual = contextual;
        rawContextual.destroy(instance.instance, instance.ctx);
    }
}
View Full Code Here

                    // therefore we need completely drop the type information :(
                    Contextual contextual = componentEntry.getKey();
                    Object instance = componentEntry.getValue();
                    CreationalContext creational = creationalContextMap.get(contextual);

                    contextual.destroy(instance, creational);
                }
            }
        }
    }
View Full Code Here

        Contextual contextual = context.getContextualStore().getContextual(id);
        Object instance = store.getInstance(id);
        CreationalContext creationalContext = store.getCreationalContext(id);

        if (contextual != null && instance != null) {
          contextual.destroy(instance, creationalContext);
        }
      }
      store.clear();
    }
  }
View Full Code Here

                    // therefore we need completely drop the type information :( 
                    Contextual contextual = componentEntry.getKey();
                    Object instance = componentEntry.getValue();
                    CreationalContext creational = creationalContextMap.get(contextual);
                   
                    contextual.destroy(instance, creational);
                }
            }
        }
    }
       
View Full Code Here

            {
               Contextual contextual = componentEntry.getKey();
               Object instance = componentEntry.getValue();
               CreationalContext creational = creationalContextMap.get(contextual);

               contextual.destroy(instance, creational);
            }
         }

         getCurrentContext().contextMap.clear();
      }
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.