Package nexj.core.util

Examples of nexj.core.util.HashDeque


      {
         return null;
      }

      StringTokenizer tokenizer = new StringTokenizer(sDataSources, ",");
      Set dataSourceSet = new HashDeque(1);

      while (tokenizer.hasMoreTokens())
      {
         dataSourceSet.add(m_context.getMetadata().getDataSource(tokenizer.nextToken().trim()));
      }

      return dataSourceSet;
   }
View Full Code Here


      checkTransaction();

      if (m_instanceSet == null)
      {
         m_instanceSet = new HashDeque(16);
      }

      if (m_nMaxChangeCount >= 0 &&
         m_instanceSet.size() >= m_nMaxChangeCount &&
         !m_instanceSet.contains(instance))
View Full Code Here

         throw new NullPointerException();
      }

      if (m_listenerDeque == null)
      {
         m_listenerDeque = new HashDeque(4);
      }

      m_listenerDeque.addLast(listener);
   }
View Full Code Here

            {
               deque = (HolderDeque)m_txMap.get(assoc); // get the Tx-specific deque

               if (deque == null)
               {
                  deque = new HashDeque();
                  m_txMap.put(assoc, deque);
               }

               deque.addFirst(connection); // add to deque tracking connections per transaction
            }
View Full Code Here

         {
            HolderDeque deque = (HolderDeque)m_poolMap.get(key);

            if (deque == null)
            {
               deque = new HashDeque();
               m_poolMap.put(key, deque);
            }

            deque.addFirst(connection);
         }
View Full Code Here

    * @param handler The mixin handler.
    * @throws MetadataException if a mixin's .metadata file fails to parse.
    */
   public static void forEachReferencedMixin(Element rootElement, URL baseMetaFolderURL, MixinNamespaceHandler handler)
   {
      final HolderDeque mixinSet = new HashDeque(4);
      XMLUtil.ElementHandler mixinElementHandler = new XMLUtil.ElementHandler()
      {
         public void handleElement(Element element)
         {
            mixinSet.add(new Pair(XMLUtil.getStringAttr(element, "namespace", ""), new Pair(XMLUtil.getStringAttr(element,
               "version", ""), XMLUtil.getStringAttr(element, "checksum", ""))));
         }
      };

      forEachMixin(baseMetaFolderURL, mixinElementHandler);
      forEachMixin(rootElement, mixinElementHandler);

      Holder registeredList = new HashHolder(mixinSet.size());

      while (!mixinSet.isEmpty())
      {
         Pair p = (Pair)mixinSet.removeFirst();

         if (registeredList.add(p))
         {
            String sNamespace = (String)p.getHead();

View Full Code Here

            new Object[]{classObject.getName()});
      }

      if (m_classSet == null)
      {
         m_classSet = new HashDeque();
      }

      m_classSet.add(classObject);
   }
View Full Code Here

TOP

Related Classes of nexj.core.util.HashDeque

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.