de.grogra.pf.registry
public final class PluginDescriptor extends Item
Node.AccessorBridge, Node.FieldAttributeAccessor, Node.NType| Modifier and Type | Field and Description |
|---|---|
static Node.NType |
$TYPE |
static int |
ACTIVE |
static Node.NType.Field |
cls$FIELD |
static int |
DISABLED |
static int |
ERROR |
static int |
FRESH |
static int |
INACTIVE |
static int |
MISSING_PREREQUISITE |
static Node.NType.Field |
version$FIELD |
ADDITIONAL_FIELDS, bits, DELETED, EXTENT_BIT, EXTENT_MASK, extentIndex$FIELD, extentTail$FIELD, HAS_OBSERVERS, IS_INTERPRETIVE, isInterpretive$FIELD, LAST_EXTENT_INDEX, layer$FIELD, MARK, mark$FIELD, MIME_TYPE, MIN_UNUSED_SPECIAL_OF_SOURCE, MIN_UNUSED_SPECIAL_OF_TARGET, name$FIELD, USED_BITSACCELERATOR_KEY, ICON, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, TITLEDEFAULT_VALUE, EMPTY_MAP| Modifier and Type | Method and Description |
|---|---|
static PluginDescriptor |
createCoreDescriptor(java.io.File libDir) |
java.lang.Object |
get(java.lang.Object key,
java.lang.Object defaultValue)
Returns the value associated with
key. |
java.lang.ClassLoader |
getClassLoader() |
java.io.File |
getConfigurationDirectory() |
FileSystem |
getFileSystem() |
I18NBundle |
getI18NBundle() |
static PluginDescriptor |
getInstance(java.lang.Class cls) |
static PluginDescriptor |
getInstance(java.lang.ClassLoader loader) |
static PluginDescriptor |
getInstance(java.lang.String pluginId) |
java.lang.Object[] |
getLibraryFiles() |
protected Node.NType |
getNTypeImpl()
This method returns the
Node.NType which describes the managed
fields of the class of this node. |
Plugin |
getPlugin() |
PluginClassLoader |
getPluginClassLoader() |
java.lang.Object |
getPluginDirectory() |
java.lang.String |
getPluginName() |
java.lang.String |
getPluginProvider() |
int |
getPluginState() |
java.lang.String |
getPluginVersion() |
java.net.URL |
getURLForResource(java.lang.String name) |
boolean |
loadPlugin(Registry registry,
java.lang.ClassLoader parentLoader) |
protected Node |
newInstance()
This method returns a new instance of the class of this
node.
|
static PluginDescriptor |
read(java.lang.String systemId,
java.io.InputStream in,
FileSystem fs,
java.lang.Object dir) |
protected boolean |
readAttribute(java.lang.String uri,
java.lang.String name,
java.lang.String value) |
void |
setI18NBundle(I18NBundle bundle) |
void |
setPluginState(int state) |
java.lang.String |
toString() |
activate, activateImpl, add, add, addPluginPrerequisite, addPluginPrerequisites, addRequiredFiles, addUserItem, addUserItemWithUniqueName, addWithUniqueName, beginXA, classForName, commitXA, createItem, deactivate, deactivateImpl, deriveItems, dupUnmanagedFields, equals, findAll, findAll, findAll, findFirst, findFirst, findFirst, findMax, findMax, findMax, forAll, forAll, forAll, getAbsoluteName, getAccessor, getAccessor, getAttributes, getAttributes, getDefaultDescription, getDefaultValue, getDerivedDescription, getDescription, getDescriptionImpl, getFromResource, getItem, getLock, getParentMap, getPath, getPluginDescriptor, getRegistry, getRoot, getTransaction, getUniqueName, getWriteLock, hasEditableOptions, initPluginDescriptor, isActivated, isDirectory, isEditable, isOptionCategory, isPluginItem, isUserItem, makeUserItem, paramString, remove, removeDerivedItems, resolveItem, resolveLink, set, setDefaultDescription, setDescription, setDescription, setDirectory, setName, setNameIfNull, setOption, substitute, validateaddEdgeBitsTo, addReference, appendBranchNode, appendBranchNode, appendReferencesTo, clone, clone, cloneGraph, dump, dumpTree, dup, edgeChanged, fieldModified, findAdjacent, findRefinementType, getAxisParent, getBoolean, getBranch, getBranchLength, getBranchNode, getBranchTail, getByte, getChar, getCommonAncestor, getCurrentGraphState, getDirectChildCount, getDouble, getEdgeAttributeAccessor, getEdgeAttributes, getEdgeBitsTo, getEdgeTo, getExtentIndex, getFirst, getFirstEdge, getFloat, getGraph, getId, getIndex, getInstantiator, getInt, getLayer, getLong, getManageableType, getName, getNeighbor, getNext, getNType, getObject, getOrCreateEdgeTo, getOrNull, getPersistenceManager, getPredecessor, getProvider, getShort, getSource, getStamp, getSuccessor, getSymbol, getSymbolColor, getTarget, getTransaction, getUserField, getUserFieldCount, getXClass, getXData, hasName, initProvider, initXClass, insertBranchNode, insertBranchNode, instantiateGraph, isAncestorOf, isDirection, isEncoarseOf, isManagingInstance, isMarked, isRoot, isSource, isTarget, manageableReadResolve, manageableWriteReplace, removeAll, removeEdgeBitsTo, removeFromChain, removeFromChain, removeReference, setBranch, setBranch, setExtentIndex, setGraphForDeserialization, setLayer, setMark, setSuccessor, setSuccessor, specialEdgeAdded, specialEdgeRefModified, specialEdgeRemoved, writeReplaceaddEdgeBits, getBitMark, getEdgeBits, getObjectMark, getSpecialEdgeDescriptor, parseEdgeKeys, remove, removeEdgeBits, setBitMark, setEdgeBits, setObjectMark, testEdgeBitsequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetBitMark, getObjectMark, setBitMark, setObjectMarkpublic static final Node.NType $TYPE
public static final int ACTIVE
public static final Node.NType.Field cls$FIELD
public static final int DISABLED
public static final int ERROR
public static final int FRESH
public static final int INACTIVE
public static final int MISSING_PREREQUISITE
public static final Node.NType.Field version$FIELD
public static PluginDescriptor createCoreDescriptor(java.io.File libDir)
public java.lang.Object get(java.lang.Object key,
java.lang.Object defaultValue)
Mapkey. If there is
no value associated with key, defaultValue
is returned.public java.lang.ClassLoader getClassLoader()
getClassLoader in class Itempublic java.io.File getConfigurationDirectory()
public FileSystem getFileSystem()
public I18NBundle getI18NBundle()
getI18NBundle in class Itempublic static PluginDescriptor getInstance(java.lang.Class cls)
public static PluginDescriptor getInstance(java.lang.ClassLoader loader)
public static PluginDescriptor getInstance(java.lang.String pluginId)
public java.lang.Object[] getLibraryFiles()
protected Node.NType getNTypeImpl()
NodeNode.NType which describes the managed
fields of the class of this node. This method has to be implemented
in every concrete subclass.getNTypeImpl in class Itempublic Plugin getPlugin()
public PluginClassLoader getPluginClassLoader()
public java.lang.Object getPluginDirectory()
public java.lang.String getPluginName()
public java.lang.String getPluginProvider()
public int getPluginState()
public java.lang.String getPluginVersion()
public java.net.URL getURLForResource(java.lang.String name)
public boolean loadPlugin(Registry registry, java.lang.ClassLoader parentLoader)
protected Node newInstance()
NodenewInstance in class Itempublic static PluginDescriptor read(java.lang.String systemId, java.io.InputStream in, FileSystem fs, java.lang.Object dir) throws java.io.IOException
java.io.IOExceptionprotected boolean readAttribute(java.lang.String uri,
java.lang.String name,
java.lang.String value)
throws org.xml.sax.SAXException
readAttribute in class Itemorg.xml.sax.SAXExceptionpublic void setI18NBundle(I18NBundle bundle)
public void setPluginState(int state)