|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.actf.util.resources.DefaultResourceLocator
org.eclipse.actf.validation.javapp.runtime.InterJvmResourceLocator
public class InterJvmResourceLocator
a resource locator for retrieving resource over a socket connection between two JVMs. This locator is used by the validating JVM (i.e. launched JVM) in an AOP-based validation. Resources are retrieved from the launching JVM, which is either launched by the Eclipse environment or via command line.
Note: The ClassLoader arguments are ignored in this implementation.
Field Summary |
---|
Fields inherited from interface org.eclipse.actf.util.resources.IResourceLocator |
---|
ACTF_RESOURCES_PATHS_KEY, DEFAULT_ACTF_RESOURCES_DIR |
Constructor Summary | |
---|---|
InterJvmResourceLocator()
|
Method Summary | |
---|---|
protected void |
finalize()
|
InputStream |
getResourceAsStream(String id)
get the resource with the given id as a stream and using the class loader that loaded this IResourceLocator instance. |
InputStream |
getResourceAsStream(String id,
ClassLoader loader)
get the resource corresponding to the given id as a stream using the specified class loader. |
InputStream |
getResourceAsStream(String id,
String base,
String ext,
ClassLoader loader)
get the resource corresponding to the given id as a stream using the specified class loader. The base path and extention of the file resource are also specified. |
IConfiguration |
requestConfiguration()
request the active ACTF configuration object from the resource server |
void |
setHostName(String hostName)
set the host name for the connection to the source of the resources to be retrieved by this locator |
void |
setPort(int port)
set the port of the connection that will furnish the source of the resources to be retrieved by this locator |
Methods inherited from class org.eclipse.actf.util.resources.DefaultResourceLocator |
---|
getPath, getPaths, getResource, getResourceAsBufferedStream, getResourceAsBufferedStream, getResources, makeBufferedStream |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InterJvmResourceLocator()
Method Detail |
---|
public void setHostName(String hostName)
hostName
- - the host namepublic void setPort(int port)
port
- public InputStream getResourceAsStream(String id)
getResourceAsStream
in interface IResourceLocator
getResourceAsStream
in class DefaultResourceLocator
id
- - id of resource
public InputStream getResourceAsStream(String id, ClassLoader loader)
getResourceAsStream
in interface IResourceLocator
getResourceAsStream
in class DefaultResourceLocator
id
- - id of resourceloader
- -- class loader to use
public InputStream getResourceAsStream(String id, String base, String ext, ClassLoader loader)
getResourceAsStream
in interface IResourceLocator
getResourceAsStream
in class DefaultResourceLocator
id
- - id of resourcebase
- - base pathext
- -extentioloader
- -- class loader to use
public IConfiguration requestConfiguration() throws Exception
Exception
protected void finalize() throws Throwable
finalize
in class Object
Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |