| Modifier and Type | Method and Description |
|---|---|
static Hive |
getHive(Object queen)
Returns the Hive stored with the key.
|
static void |
registerHive(Object queen,
HiveFactory factory)
Registers a new Hive for anybody knowing the right key to be retrieved.
|
static Hive |
unregisterHive(Object queen)
Removes the registration of a single Hive.
|
public static Hive getHive(Object queen)
queen - the keypublic static void registerHive(Object queen, HiveFactory factory)
queen - the key to store the Hive with.factory - the factory that will produce the Hive.IllegalArgumentException - if the factory is nullIllegalArgumentException - if an attempt is made to overwrite the registration.RuntimeException - if the factory does not produce a Hive.unregisterHive(Object)Copyright © 2015. All rights reserved.