|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.cpl.service.IlpClassLoaderURLAccessService
public class IlpClassLoaderURLAccessService
This service is used for deploying applications and applets without
hardcoding pathnames or URLs. It allows you to provide an
java.net.URLClassLoader to turn relative URLs into absolute
URLs or pathnames.
A possible use of this service is for accessing icons and configuration files.
| Constructor Summary | |
|---|---|
IlpClassLoaderURLAccessService(URLClassLoader classLoader)
Creates the service. |
|
| Method Summary | |
|---|---|
URL |
getFileLocation(String filename)
Returns the URL of a file in the path, or null if it is not found. |
URL |
getFileLocation(String filename,
boolean searchClassPathFirst,
boolean searchClassPathLast)
Returns the URL of a file in the path, or null if it is not found. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IlpClassLoaderURLAccessService(URLClassLoader classLoader)
classLoader - the classLoader whose findResource
method will be used to resolve URLs| Method Detail |
|---|
public URL getFileLocation(String filename)
null if it is not found.
In this implementation, it simply calls the classloader's
findResource method.
getFileLocation in interface IlpURLAccessServicefilename - A relative URL or pathname.
public URL getFileLocation(String filename,
boolean searchClassPathFirst,
boolean searchClassPathLast)
null if it is not found.
This variant has explicit control whether the file shall be searched in the
CLASSPATH or not.
getFileLocation in interface IlpURLAccessServicefilename - A relative URL or pathname.searchClassPathFirst - ignored in this implementationsearchClassPathLast - ignored in this implementation
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||