JPF 1.5.1

org.java.plugin.registry
Interface Library

All Superinterfaces:
Documentable<Library>, Identity, PluginElement<Library>, UniqueIdentity
All Known Implementing Classes:
MockLibrary

public interface Library
extends UniqueIdentity, PluginElement<Library>

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
 java.util.Collection<java.lang.String> 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.UniqueIdentity
getUniqueId
 
Methods inherited from interface org.java.plugin.registry.Identity
getId
 
Methods inherited from interface org.java.plugin.registry.PluginElement
getDeclaringPluginDescriptor, getDeclaringPluginFragment
 
Methods inherited from interface org.java.plugin.registry.Identity
getId
 
Methods inherited from interface org.java.plugin.registry.Documentable
getDocsPath, getDocumentation
 

Method Detail

getPath

java.lang.String getPath()
Returns:
path to resource

isCodeLibrary

boolean isCodeLibrary()
Returns:
true if this is "code" library

getExports

java.util.Collection<java.lang.String> 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

Version getVersion()
Returns:
library version identifier as specified in manifest file or null

JPF 1.5.1

Copyright © 2004-2007 Dmitry Olshansky. All Rights Reserved.