JPF 1.5.1

org.java.plugin.registry
Interface PluginPrerequisite

All Superinterfaces:
Documentable<PluginPrerequisite>, Identity, PluginElement<PluginPrerequisite>, UniqueIdentity
All Known Implementing Classes:
MockPluginPrerequisite

public interface PluginPrerequisite
extends UniqueIdentity, PluginElement<PluginPrerequisite>

This interface abstracts inter plug-ins dependencies.

Plug-in prerequisite UID is a combination of declaring plug-in ID and prerequisite ID (may be auto-generated) that is unique within whole set of registered plug-ins.

Version:
$Id$

Method Summary
 MatchingRule getMatchingRule()
           
 java.lang.String getPluginId()
           
 Version getPluginVersion()
           
 boolean isExported()
           
 boolean isOptional()
           
 boolean isReverseLookup()
           
 boolean matches()
           
 
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

getPluginId

java.lang.String getPluginId()
Returns:
ID of plug-in, this plug-in depends on

getPluginVersion

Version getPluginVersion()
Returns:
desired plug-in version identifier or null if not specified

isExported

boolean isExported()
Returns:
true if this prerequisite is propagated on depending plug-ins

isOptional

boolean isOptional()
Returns:
true if this prerequisite is not required

isReverseLookup

boolean isReverseLookup()
Returns:
true if this prerequisite allows reverse look up of classes in imported plug-in

matches

boolean matches()
Returns:
true if this prerequisite is fulfilled

getMatchingRule

MatchingRule getMatchingRule()
Returns:
the match rule as it specified in manifest

JPF 1.5.1

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