Class ContextUtil


  • public class ContextUtil
    extends Object
    ContextUtil class.
    Since:
    1.0.0
    Author:
    imre.scheffer
    • Constructor Detail

      • ContextUtil

        public ContextUtil()
        Default constructor, constructs a new 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 up
        clazz - class of returned object
        Returns:
        the object bound to jndi
        Throws:
        hu.icellmobilsoft.coffee.dto.exception.BaseException - exception