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 java.lang.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(java.lang.String initParam, javax.servlet.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(java.lang.String initParam,
                      javax.servlet.ServletConfig config)
               throws javax.servlet.ServletException
Throws:
javax.servlet.ServletException
Method Detail

locateService

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

Returns:
Throws:
javax.servlet.ServletException


Copyright © 2008-2011 FedICT. All Rights Reserved.