Package org.java.plugin.registry
Interface Library
- All Superinterfaces:
Documentable<Library>
,Identity
,PluginElement<Library>
,UniqueIdentity
- All Known Implementing Classes:
MockLibrary
This interface provides access to information about resource or code
contributed by plug-in.
Library UID is a combination of declaring plug-in ID and library ID that is unique within whole set of registered plug-ins.
- Version:
- $Id$
-
Method Summary
Methods inherited from interface org.java.plugin.registry.Documentable
getDocsPath, getDocumentation
Methods inherited from interface org.java.plugin.registry.PluginElement
getDeclaringPluginDescriptor, getDeclaringPluginFragment
Methods inherited from interface org.java.plugin.registry.UniqueIdentity
getUniqueId
-
Method Details
-
getPath
String getPath()- Returns:
- path to resource
-
isCodeLibrary
boolean isCodeLibrary()- Returns:
true
if this is "code" library
-
getExports
Collection<String> getExports()This method should return collection ofString
objects that represent resource name prefixes or package name patterns that are available to other plug-ins.
For code library, prefix is a package name, for resource library, the same rules applied to relative resource path calculated against library path (you can replace slash characters in path with dots).
Example prefixes are:
"*", "package.name.*", "package.name.ClassName", "resource/path/*
- Returns:
- collection of exported resource name patterns
-
getVersion
Version getVersion()- Returns:
- library version identifier as specified in manifest file or
null
-