be.fedict.eid.applet.service.impl
Class ServiceLocator<T>

java.lang.Object
  extended by be.fedict.eid.applet.service.impl.ServiceLocator<T>
Type Parameters:
T - the service type.

public class ServiceLocator<T>
extends Object

Service locator. Can handle both JNDI references as classname references. Classname referencing can be useful in environments where you don't have a full-blown Java EE application container available.

Author:
Frank Cornelis

Constructor Summary
ServiceLocator(String initParam, FilterConfig config)
           
ServiceLocator(String initParam, ServletConfig config)
           
 
Method Summary
 T locateService()
          Locates the service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceLocator

public ServiceLocator(String initParam,
                      ServletConfig config)
               throws ServletException
Throws:
ServletException

ServiceLocator

public ServiceLocator(String initParam,
                      FilterConfig config)
Method Detail

locateService

public T locateService()
                throws ServletException
Locates the service. Can return null in case the corresponding init-param was not set.

Returns:
Throws:
ServletException


Copyright © 2008-2014 FedICT. All Rights Reserved.