Examples of release()


Examples of org.jboss.as.naming.ManagedReference.release()

                ok = true;
                return result;
            } finally {
                if (!ok) {
                    valueReference.set(null);
                    reference.release();
                }
            }
        }
    }
View Full Code Here

Examples of org.jboss.cache.Node.release()

            log.debug("releasePojo(): node could have been released already.");
         }
         return;
      }

      node.release(owner);
   }

   protected boolean hasCurrentTransaction()
   {
      try
View Full Code Here

Examples of org.jboss.cache.lock.IdentityLock.release()

      IdentityLock lock;
      for (ListIterator it=locks.listIterator(locks.size()); it.hasPrevious();) {
            lock=(IdentityLock)it.previous();
         if (trace)
               log.trace("releasing lock for " + lock.getFqn() + ": " + lock);
         lock.release(currentThread);
      }
   }


}
View Full Code Here

Examples of org.jboss.cache.lock.NodeLock.release()

                     // make sure we release locks in *reverse* order!
                     for (int i = locks.size() - 1; i > -1; i--)
                     {
                        NodeLock nl = locks.get(i);
                        if (trace) log.trace("releasing lock for " + nl.getFqn() + ": " + nl);
                        nl.release(currentThread);
                     }
                  }
                  finally
                  {
                     ctx.clearInvocationLocksAcquired();
View Full Code Here

Examples of org.jboss.dna.graph.property.Binary.release()

                            bytes = IoUtil.readBytes(stream);
                        } finally {
                            try {
                                if (stream != null) stream.close();
                            } finally {
                                binary.release();
                            }
                        }
                        break;
                    case URI:
                        // This will be treated as a string ...
View Full Code Here

Examples of org.jboss.ejb.plugins.lock.NonReentrantLock.release()

         return getNext().invoke(mi);
      }
      finally
      {
         ctx.unlock();
         methodLock.release(nonReentrant);
      }
   }

   // Private ------------------------------------------------------
View Full Code Here

Examples of org.jboss.ejb3.cache.StatefulCache.release()

      {
         Thread.currentThread().setContextClassLoader(classloader);
         StatefulCache cache = this.getCache();
         StatefulBeanContext ctx = cache.create(initTypes, initValues);
         // Since we return the key here, the context is not in use.
         cache.release(ctx);
         Object id = ctx.getId();
         assert id instanceof Serializable : "SFSB Session IDs must be " + Serializable.class.getSimpleName();
         return (Serializable) id;
      }
      finally
View Full Code Here

Examples of org.jboss.ejb3.pool.Pool.release()

      {
         container.popContext();
         ejb.setTargetObject(null);
         ejb.setBeanContext(null);
         if (discard) pool.discard(ctx);
         else pool.release(ctx);
      }
   }
}
View Full Code Here

Examples of org.jboss.ejb3.pool.ThreadlocalPool.release()

      Container container = new MockContainer();
      int maxSize = -1;
      int timeout = -1;
      pool.initialize(container, maxSize, timeout);
      BeanContext ctx = pool.get();
      pool.release(ctx);
     
      ctx = null;
     
      gc();
      assertEquals(0, pool.getRemoveCount());
View Full Code Here

Examples of org.jboss.forge.furnace.services.Imported.release()

            List<Object> choiceList = new ArrayList<Object>();
            Imported instances = addonRegistry.getServices(valueType);
            for (Object instance : instances)
            {
               choiceList.add(instance);
               instances.release(instance);
            }
            choices = choiceList;
         }
         selectComponent.setValueChoices(choices);
      }
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.