public class VelocityServiceImpl extends Object implements VelocityService
FILE_RESOURCE| Constructor and Description |
|---|
VelocityServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
org.osgi.framework.BundleContext |
getBundleContext() |
String |
getResource(String mandatorId,
String groupId,
String artifactId,
String path,
int type,
Map<String,String> props)
Gets a resource as a String
|
InputStream |
getResourceAsStream(String mandatorId,
String groupId,
String artifactId,
String path,
int type,
Map<String,String> props)
Gets a resource as an InputStream
|
void |
setBundleContext(org.osgi.framework.BundleContext bundleContext) |
void |
startUp()
The startup of the service
|
public void startUp()
throws IOException
IOExceptionpublic String getResource(String mandatorId, String groupId, String artifactId, String path, int type, Map<String,String> props) throws IOException
ResourceServicegetResource in interface ResourceServicemandatorId - The mandator that holds the resourcegroupId - The id of the groupartifactId - The id of the artifactpath - The resource path relative to the mandator roottype - The type of the resourceprops - Properties (optional)IOException - If the resource cannot be readpublic InputStream getResourceAsStream(String mandatorId, String groupId, String artifactId, String path, int type, Map<String,String> props) throws IOException
ResourceServicegetResourceAsStream in interface ResourceServicemandatorId - The mandator that holds the resourcegroupId - The id of the groupartifactId - The id of the artifactpath - The resource path relative to the mandator roottype - The type of the resourceprops - Properties (optional)IOException - If the resource cannot be readpublic org.osgi.framework.BundleContext getBundleContext()
public void setBundleContext(org.osgi.framework.BundleContext bundleContext)
bundleContext - the bundleContext to setCopyright © 2015. All rights reserved.