Package org.omnifaces.cdi

Examples of org.omnifaces.cdi.BeanStorage$Bean


  /**
   * This method is invoked during view destroy by {@link ViewScopeEventListener}, in that case destroy all beans in
   * current active view scope.
   */
  public void preDestroyView() {
    BeanStorage storage = activeViewScopes.remove(getBeanStorageId(false));

    if (storage != null) {
      storage.destroyBeans();
    }
  }
View Full Code Here


    if (id == null || activeViewScopes.get(id) == null) {
      id = UUID.randomUUID();

      if (create) {
        activeViewScopes.put(id, new BeanStorage(DEFAULT_BEANS_PER_VIEW_SCOPE));
      }

      setViewAttribute(ViewScopeManager.class.getName(), id);
    }
View Full Code Here

TOP

Related Classes of org.omnifaces.cdi.BeanStorage$Bean

Copyright © 2018 www.massapicom. 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.