public final class Activator extends Object
The GNU Lesser General Public License for details.| Modifier and Type | Field and Description |
|---|---|
private static Set<Activatable> |
activated
The list of things that we have activated
|
private static Lock |
lock
The object we use to prevent others from
|
| Modifier | Constructor and Description |
|---|---|
private |
Activator()
Prevent instantiation
|
| Modifier and Type | Method and Description |
|---|---|
static void |
activate(Activatable subject)
Check that a subject is activated and call activate() if not.
|
static void |
deactivate(Activatable subject)
Deactivate an Activatable object.
|
static void |
deactivateAll() |
static void |
reduceMemoryUsage(Kill amount)
If we need to tighten things up a bit we can save memory with this
|
private static Set<Activatable> activated
private static Lock lock
public static void activate(Activatable subject)
subject - The thing to activatepublic static void reduceMemoryUsage(Kill amount)
amount - the amount by which to to reduce memorypublic static void deactivate(Activatable subject)
subject - The thing to deactivatepublic static void deactivateAll()