public abstract class Multiton extends Object
The set of instances of a multiton is determined by:
Instances. These methods must be private static, have no parameters and return an array
with an component type assignment compatible with the multiton class.
| Constructor and Description |
|---|
Multiton() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
getAdapter(Class<T> type) |
static <T extends Multiton> |
getInstances(Class<T> multitonClass)
Get all instances of the given multiton.
|
public static <T extends Multiton> List<T> getInstances(Class<T> multitonClass)
Multiton class for
information about how the instances are determined.multitonClass - the multiton classMultitonInstantiationException - if an error occurredpublic final <T> T getAdapter(Class<T> type)
Copyright ? The Apache Software Foundation. All Rights Reserved.