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 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 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