be.fedict.eid.applet.service.impl
Class ServiceLocator<T>
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServiceLocator
public ServiceLocator(String initParam,
ServletConfig config)
throws ServletException
- Throws:
ServletException
ServiceLocator
public ServiceLocator(String initParam,
FilterConfig config)
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-2012 FedICT. All Rights Reserved.