org.olat.core.extensions
Class ClasspathExtensionResource

java.lang.Object
  extended by org.olat.core.extensions.ClasspathExtensionResource
All Implemented Interfaces:
ExtensionResource

public class ClasspathExtensionResource
extends java.lang.Object
implements ExtensionResource

Description:
Initial Date: 12.07.2005

Author:
Mike Stock

Constructor Summary
ClasspathExtensionResource(java.lang.Class clazz, java.lang.String resourcePath)
           
 
Method Summary
 java.io.InputStream getContent()
          This is the content of the extension resource.
 java.lang.String getTargetName()
          This is the name this extension resource should be given after deployment.
 java.lang.String getTargetSubpath()
          This is the subpath the extension resource should be deployed to.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClasspathExtensionResource

public ClasspathExtensionResource(java.lang.Class clazz,
                                  java.lang.String resourcePath)
Parameters:
clazz -
resourcePath -
Method Detail

getTargetName

public java.lang.String getTargetName()
Description copied from interface: ExtensionResource
This is the name this extension resource should be given after deployment.

Specified by:
getTargetName in interface ExtensionResource
Returns:
See Also:
ExtensionResource.getTargetName()

getTargetSubpath

public java.lang.String getTargetSubpath()
Description copied from interface: ExtensionResource
This is the subpath the extension resource should be deployed to.

Specified by:
getTargetSubpath in interface ExtensionResource
Returns:
See Also:
ExtensionResource.getTargetSubpath()

getContent

public java.io.InputStream getContent()
                               throws java.io.IOException
Description copied from interface: ExtensionResource
This is the content of the extension resource.

Specified by:
getContent in interface ExtensionResource
Returns:
Throws:
java.io.IOException
See Also:
ExtensionResource.getContent()