public static interface GeneratorAdapterFactory.Descriptor.Registry
Descriptor
s. Descriptors are keyed by package ID, and
multiple descriptors can be associated with each package ID.Modifier and Type | Field and Description |
---|---|
static GeneratorAdapterFactory.Descriptor.Registry |
INSTANCE
The global generator adapter factory descriptor registry.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addDescriptor(java.lang.String packageID,
GeneratorAdapterFactory.Descriptor descriptor)
Registers the given descriptor against the specified package ID.
|
void |
clear()
Clears the registry of all descriptor registrations.
|
java.util.Collection<GeneratorAdapterFactory.Descriptor> |
getDescriptors(java.lang.String packageID)
Returns the descriptors registered against the given package ID.
|
boolean |
removeDescriptor(java.lang.String packageID,
GeneratorAdapterFactory.Descriptor descriptor)
Removes the given descriptor from the collection registered against the given package ID.
|
boolean |
removeDescriptors(java.lang.String packageID)
Deregisters all descriptors for a given package ID.
|
static final GeneratorAdapterFactory.Descriptor.Registry INSTANCE
java.util.Collection<GeneratorAdapterFactory.Descriptor> getDescriptors(java.lang.String packageID)
boolean addDescriptor(java.lang.String packageID, GeneratorAdapterFactory.Descriptor descriptor)
boolean removeDescriptor(java.lang.String packageID, GeneratorAdapterFactory.Descriptor descriptor)
boolean removeDescriptors(java.lang.String packageID)
void clear()