org.apache.sling.launchpad.base.impl
Class ClassLoaderResourceProvider

java.lang.Object
  extended by org.apache.sling.launchpad.base.impl.ClassLoaderResourceProvider
All Implemented Interfaces:
LaunchpadContentProvider

public class ClassLoaderResourceProvider
extends Object
implements LaunchpadContentProvider

The ClassLoaderResourceProvider TODO


Constructor Summary
ClassLoaderResourceProvider(ClassLoader classLoader)
           
 
Method Summary
 Iterator<String> getChildren(String path)
          Returns an iterator of paths strings of the children of the given folder defined by its path.
 URL getResource(String path)
          Returns an URL to the resource with the given path or null if no such resource exists.
 InputStream getResourceAsStream(String path)
          Returns an InputStream to the resource given by the path or null if no such resource exists.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassLoaderResourceProvider

public ClassLoaderResourceProvider(ClassLoader classLoader)
Method Detail

getChildren

public Iterator<String> getChildren(String path)
Description copied from interface: LaunchpadContentProvider
Returns an iterator of paths strings of the children of the given folder defined by its path.

Specified by:
getChildren in interface LaunchpadContentProvider

getResource

public URL getResource(String path)
Description copied from interface: LaunchpadContentProvider
Returns an URL to the resource with the given path or null if no such resource exists.

Specified by:
getResource in interface LaunchpadContentProvider

getResourceAsStream

public InputStream getResourceAsStream(String path)
Description copied from interface: LaunchpadContentProvider
Returns an InputStream to the resource given by the path or null if no such resource exists.

Specified by:
getResourceAsStream in interface LaunchpadContentProvider


Copyright © 2007-2013 The Apache Software Foundation. All Rights Reserved.