de.smartics.testdoc.report.resource
Class CategoryResourceLoader

Package class diagram package CategoryResourceLoader
java.lang.Object
  extended by de.smartics.testdoc.report.resource.CategoryResourceLoader

public final class CategoryResourceLoader
     
     
extends Object

Service loader to load category resource descriptors.

Author:
Robert Reiner

Field Summary
static CategoryResourceLoader INSTANCE
          The singleton instance of the resource loader.
 
Method Summary
 CategoryResource getResource(Class<?> categoryType)
          Returns the category resource for the given category type.
 CategoryResource getResource(Locale locale, Class<?> categoryType)
          Returns the category resource for the given category type.
 CategoryResource getResource(Locale locale, String categoryId)
          Returns the category resource for the given category type.
 CategoryResource getResource(String categoryId)
          Returns the category resource for the given category type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final CategoryResourceLoader INSTANCE
The singleton instance of the resource loader.

Method Detail

getResource

public CategoryResource getResource(String categoryId)
Returns the category resource for the given category type.

Parameters:
categoryId - the type of the category the resource is requested.
Returns:
a category resource, never null.

getResource

public CategoryResource getResource(Locale locale,
                                    String categoryId)
Returns the category resource for the given category type.

Parameters:
locale - the locale for which the resource is requested.
categoryId - the type of the category the resource is requested.
Returns:
a category resource, never null.

getResource

public CategoryResource getResource(Class<?> categoryType)
Returns the category resource for the given category type.

Parameters:
categoryType - the type of the category the resource is requested.
Returns:
a category resource, never null.

getResource

public CategoryResource getResource(Locale locale,
                                    Class<?> categoryType)
Returns the category resource for the given category type.

Parameters:
locale - the locale for which the resource is requested.
categoryType - the type of the category the resource is requested.
Returns:
a category resource, never null.


Copyright © 2010-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.