org.equanda.persistence
Class EJBUtil

java.lang.Object
  extended by org.equanda.persistence.EJBUtil

public final class EJBUtil
extends Object

Utility methods for the EJBUtil classes, avoids duplication of common code.

Author:
Joachim Van der Auwera

Method Summary
static
<T> T
lookup(Hashtable environment, String jndiName, Class<T> narrowTo)
           
static
<T> T
lookup(String jndiName, Class<T> narrowTo)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

lookup

public static <T> T lookup(String jndiName,
                           Class<T> narrowTo)
                throws NamingException
Throws:
NamingException

lookup

public static <T> T lookup(Hashtable environment,
                           String jndiName,
                           Class<T> narrowTo)
                throws NamingException
Throws:
NamingException


Copyright © 2007-2009. All Rights Reserved.