protected abstract class DependencyHandler.ResourceInfo extends Object
A protected abstract inner class that is used to allow its parent DependencyHandler to easily
retrieve the InputStream for their associated resource. This is an inner class so that it has
access to all the instance variables of the DependencyHandler such as the ApplicationContext
but is protected so that custom DependencyHandler classes can define new extensions to it.
| Modifier and Type | Field and Description |
|---|---|
protected String |
path
The path that identifies the resource.
|
| Modifier | Constructor and Description |
|---|---|
protected |
DependencyHandler.ResourceInfo(String path) |
| Modifier and Type | Method and Description |
|---|---|
String |
getContents()
Returns the contents of the resource.
|
InputStream |
getInputStream()
Returns the cached contents of the resource if they have been set otherwise
defers to the
loadInputStream method. |
abstract InputStream |
loadInputStream()
Should be implemented to load the
InputStream |
protected final String path
The path that identifies the resource.
protected DependencyHandler.ResourceInfo(String path)
public String getContents()
Returns the contents of the resource.
public InputStream getInputStream() throws IOException
Returns the cached contents of the resource if they have been set otherwise
defers to the loadInputStream method.
IOExceptionpublic abstract InputStream loadInputStream() throws IOException
Should be implemented to load the InputStream
IOExceptionCopyright © 2005–2016 Alfresco Software. All rights reserved.