org.guiceyfruit.support
Class Closers

java.lang.Object
  extended by org.guiceyfruit.support.Closers

public final class Closers
extends java.lang.Object

Some helper methods for working with the Closer interface

Version:
$Revision: 1.1 $

Constructor Summary
Closers()
           
 
Method Summary
static void close(java.lang.Object key, java.lang.Object objectToBeClosed, Closer closer, CloseErrors errors)
          Closes the given object with the Closer if the object is not null
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Closers

public Closers()
Method Detail

close

public static void close(java.lang.Object key,
                         java.lang.Object objectToBeClosed,
                         Closer closer,
                         CloseErrors errors)
Closes the given object with the Closer if the object is not null

Parameters:
key - the Key or String name of the object to be closed
objectToBeClosed - the object that is going to be closed
closer - the strategy used to close the object
errors - the handler of exceptions if they occur


Copyright © 2009. All Rights Reserved.