Class ContextUtil
- java.lang.Object
-
- hu.icellmobilsoft.coffee.tool.context.ContextUtil
-
public class ContextUtil extends Object
ContextUtil class.- Since:
- 1.0.0
- Author:
- imre.scheffer
-
-
Constructor Summary
Constructors Constructor Description ContextUtil()Default constructor, constructs a new object.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> TdoLookup(String jndi, Class<T> clazz)Retrieves named object.
-
-
-
Method Detail
-
doLookup
public static <T> T doLookup(String jndi, Class<T> clazz) throws hu.icellmobilsoft.coffee.dto.exception.BaseException
Retrieves named object.- Type Parameters:
T- type of returned object- Parameters:
jndi- the name of the object to look upclazz- class of returned object- Returns:
- the object bound to
jndi - Throws:
hu.icellmobilsoft.coffee.dto.exception.BaseException- exception
-
-