pluginCore
Class PluginCore.PluginListElement

java.lang.Object
  extended by pluginCore.PluginCore.PluginListElement
Enclosing class:
PluginCore

private class PluginCore.PluginListElement
extends Object

This is a single element that conains a plugin and a stable/unstable lock to controll acess to the plugin.


Field Summary
(package private)  ReentrantReadWriteLock theLock
           
(package private)  Plugin thePlugin
           
 
Constructor Summary
PluginCore.PluginListElement()
           
PluginCore.PluginListElement(Plugin plug)
           
 
Method Summary
 void aquireReadLock()
           
 void aquireWriteLock()
           
 ReentrantReadWriteLock getTheLock()
           
 Plugin getThePlugin()
           
 boolean hasUnstableLock()
           
 void releaseReadLock()
           
 void releaseWriteLock()
           
 void setThePlugin(Plugin thePlugin)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

thePlugin

Plugin thePlugin

theLock

ReentrantReadWriteLock theLock
Constructor Detail

PluginCore.PluginListElement

PluginCore.PluginListElement()

PluginCore.PluginListElement

PluginCore.PluginListElement(Plugin plug)
Method Detail

aquireReadLock

public void aquireReadLock()

hasUnstableLock

public boolean hasUnstableLock()

releaseReadLock

public void releaseReadLock()

aquireWriteLock

public void aquireWriteLock()

releaseWriteLock

public void releaseWriteLock()

getThePlugin

public Plugin getThePlugin()

setThePlugin

public void setThePlugin(Plugin thePlugin)

getTheLock

public ReentrantReadWriteLock getTheLock()