public class TInit
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
TInit.ProviderRegistrationAction
Action to be taken on registration of a provider.
|
Modifier and Type | Method and Description |
---|---|
static void |
registerClasses(java.lang.Class providerClass,
TInit.ProviderRegistrationAction action)
Register all service providers of a certain type.
|
public static void registerClasses(java.lang.Class providerClass, TInit.ProviderRegistrationAction action)
providerClass
- Type of the service providers that should
be registered. For instance, this could be the class object for
javax.sound.sampled.spi.MixerProvider. However, the mechanism
is not restricted to the Java Sound types of service providers.action
- A ProviderRegistrationAction that should to be
called to register the service providers. Typically, this is
something like adding the provider to a collection, but in
theorie, could be anything.