org.apache.wicket.util.resource.locator
Class OsgiResourceStreamLocator

java.lang.Object
  extended by org.apache.wicket.util.resource.locator.ResourceStreamLocator
      extended by org.apache.wicket.util.resource.locator.OsgiResourceStreamLocator
All Implemented Interfaces:
IResourceStreamLocator

public class OsgiResourceStreamLocator
extends ResourceStreamLocator

OSGI specific resource stream factory

Author:
Juergen Donnerstag

Constructor Summary
OsgiResourceStreamLocator()
          Construct.
OsgiResourceStreamLocator(IResourceFinder finder)
          Construct.
 
Method Summary
 IResourceStream locate(Class<?> clazz, String path)
          Loads a resource, given a path and class.
 
Methods inherited from class org.apache.wicket.util.resource.locator.ResourceStreamLocator
locate, locateByClassLoader, locateByResourceFinder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OsgiResourceStreamLocator

public OsgiResourceStreamLocator()
Construct.


OsgiResourceStreamLocator

public OsgiResourceStreamLocator(IResourceFinder finder)
Construct.

Parameters:
finder -
Method Detail

locate

public IResourceStream locate(Class<?> clazz,
                              String path)
Description copied from interface: IResourceStreamLocator
Loads a resource, given a path and class. Typically this method is either called by external clients if they are not interested in a lookup that takes the style and locale into account, or it is called by the implementation of IResourceStreamLocator.locate(Class, String, String, Locale, String) where the latter just takes care of trying out the different combinations for the provided style and locale and uses this method to actually load the resource stream.

Specified by:
locate in interface IResourceStreamLocator
Overrides:
locate in class ResourceStreamLocator
Parameters:
clazz - The class loader for delegating the loading of the resource
path - The path of the resource
Returns:
The resource or null
See Also:
ResourceStreamLocator.locate(java.lang.Class, java.lang.String)


Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.