public class DataStoreResourceService extends AbstractContexed implements ResourceService
conn| Constructor and Description |
|---|
DataStoreResourceService(AppContext conn) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup()
AppContext is being closed. |
java.net.URL |
getResource(java.lang.String name)
get an identifying URL for the resource
A null result implies the resource cannot be located
|
java.io.InputStream |
getResourceAsStream(java.lang.String name)
get an InputStream to read the resource.
|
java.lang.Class<? super ResourceService> |
getType()
Returns the type of service the class should be registered under.
|
getContext, getLogger, resetLoggerpublic DataStoreResourceService(AppContext conn)
public java.lang.Class<? super ResourceService> getType()
AppContextServicegetType in interface AppContextService<ResourceService>public void cleanup()
AppContextCleanupAppContext is being closed.
Only use this for cleanup that can't be handled by
normal garbage collection or for state which is never returned by reference.cleanup in interface AppContextCleanuppublic java.net.URL getResource(java.lang.String name)
ResourceServicegetResource in interface ResourceServicepublic java.io.InputStream getResourceAsStream(java.lang.String name)
throws java.lang.Exception
ResourceServicegetResourceAsStream in interface ResourceServicejava.lang.Exception - s