com.onewebsql.util.jndi
Class LookupOp<T>

java.lang.Object
  extended by com.onewebsql.util.jndi.LookupOp<T>
Type Parameters:
T - generic type of the object to retrieve.
All Implemented Interfaces:
JndiOp<T>

public class LookupOp<T>
extends Object
implements JndiOp<T>

Wraps Context.lookup(String) method as JndiOp interface.


Constructor Summary
LookupOp(String name)
          Constructor.
 
Method Summary
 T invoke(Context ctx)
          Invokes an operation which needs access to JNDI context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LookupOp

public LookupOp(String name)
Constructor.

Parameters:
name - JNDI object name of the object to retrieve.
Method Detail

invoke

public T invoke(Context ctx)
         throws NamingException
Description copied from interface: JndiOp
Invokes an operation which needs access to JNDI context.

Specified by:
invoke in interface JndiOp<T>
Parameters:
ctx - JNDI context
Returns:
result of the operation
Throws:
NamingException - when an error happens


Copyright © 2011-2013 e-point SA. All Rights Reserved.