org.java.plugin.registry
Interface Library
- All Superinterfaces:
- Documentable, Identity, PluginElement, UniqueIdentity
- public interface Library
- extends UniqueIdentity, PluginElement
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: Library.java,v 1.2 2005/12/10 13:15:28 ddimon Exp $
Method Summary |
java.util.Collection |
getExports()
This method should return collection of String objects that
represent resource name prefixes or package name patterns that are
available to other plug-ins.
|
java.lang.String |
getPath()
|
Version |
getVersion()
|
boolean |
isCodeLibrary()
|
Methods inherited from interface org.java.plugin.registry.Identity |
getId |
getPath
public java.lang.String getPath()
- Returns:
- path to resource
isCodeLibrary
public boolean isCodeLibrary()
- Returns:
true
if this is "code" library
getExports
public java.util.Collection getExports()
- This method should return collection of
String
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
public Version getVersion()
- Returns:
- library version identifier as specified in manifest file or
null
Copyright © 2004-2005 Dmitry Olshansky. All Rights Reserved.