|
copyright The Portico Project 2008. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.portico.shared.plugin.LoadedLibrary
public class LoadedLibrary
This class represents a library (jar, war, ear, etc...) that has been loaded onto the system
classpath. It contains a String describing the full path to the jar on the filesystem, as
well as a link to the java.io.File
object representing the library.
PluginLocator
class for a description of how and where these file
are located within a particular library.
Nested Class Summary | |
---|---|
static class |
LoadedLibrary.Type
Enum specifying which component a plugin configuration is aimed at. |
Field Summary | |
---|---|
private File |
file
|
private String |
fullLocation
|
private boolean |
isPlugin
|
private Set<URL> |
lrcPlugins
|
private Set<URL> |
rtiPlugins
|
Constructor Summary | |
---|---|
protected |
LoadedLibrary(String location,
File path)
Create a new LoadedLibrary that is *NOT* a plugin. |
Method Summary | |
---|---|
void |
addPluginConfiguration(LoadedLibrary.Type type,
URL configURL)
Add a URL that points to the location within the library of a plugin configuration. |
File |
getFile()
Get the location of the library as a file |
String |
getLocation()
Get the location to the library as a string. |
Set<URL> |
getPluginConfigurations(LoadedLibrary.Type type)
Get all the plugins contained in the library for the given type. |
boolean |
isPlugin()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private String fullLocation
private File file
private boolean isPlugin
private Set<URL> lrcPlugins
private Set<URL> rtiPlugins
Constructor Detail |
---|
protected LoadedLibrary(String location, File path)
#addPluginConfiguration(URL)
.
This constructor is marked as protected so that it is only called from within the package.
Method Detail |
---|
public String getLocation()
public File getFile()
public boolean isPlugin()
public void addPluginConfiguration(LoadedLibrary.Type type, URL configURL)
URL
that points to the location within the library of a plugin configuration.
If the plugin config file is meant for the RTI, pass LoadedLibrary.Type.RTI
as the first parameter.
If it is meant for the LRC, pass LoadedLibrary.Type.LRC
Note that we have to use a URL
for the configuration file because it will reside
inside an archive. The URL
class can happily handle URLs that specify this property.
type
- The LoadedLibrary.Type
the plugin configuration file is meant forconfigURL
- The URL of the configuration filepublic Set<URL> getPluginConfigurations(LoadedLibrary.Type type)
public String toString()
toString
in class Object
|
copyright The Portico Project 2008. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |