net.sf.jasperreports.jsf.spi
Class Services

java.lang.Object
  extended by net.sf.jasperreports.jsf.spi.Services

public final class Services
extends Object


Method Summary
static
<T> Map<String,T>
map(Class<T> clazz)
          Loads a service map from the classpath.
static
<T> Set<T>
set(Class<T> clazz)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

set

public static <T> Set<T> set(Class<T> clazz)
                  throws ServiceException
Type Parameters:
T -
Parameters:
clazz -
Returns:
Throws:
ServiceException

map

public static <T> Map<String,T> map(Class<T> clazz)
                         throws ServiceException
Loads a service map from the classpath.

Services are looked up following convention META-INF/services/[serviceClassName]. When loading service maps, service configuration file must contain entries as follows: [key]:[implementation class]

Type Parameters:
T - service type to be obtained
Parameters:
resource - the resource
Returns:
the map< string, class< t>>
Throws:
ServiceException


Copyright © 2009 SourceForge.net. All Rights Reserved.