public abstract class AbstractPropertyRegistrar extends Object implements PropertyRegistrar
PropertyRegistrar to simplify
code that must be generated.
Property.
Matching service files are also generated in the "META-INF/services/"
directory so the PropertyRegistrar instances can be discovered
through the java.util.ServiceLoader mechanism.
At run time, the PropertyRegistrarLoader discovers all
PropertyRegistrar instances.
Each PropertyRegistrar creates a PropertyRegistrationList
instance with a PropertyRegistration for each Property
present in the jar.
| Constructor and Description |
|---|
AbstractPropertyRegistrar() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
addPropertyRegistrations(PropertyRegistrationList list)
Can be used by subclasses to build the property registration list.
|
List<PropertyRegistration> |
getRegistrationList()
Get the list if individual
Property registrations. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRootCanonicalNamepublic List<PropertyRegistration> getRegistrationList()
PropertyRegistrarProperty registrations.getRegistrationList in interface PropertyRegistrarpublic abstract void addPropertyRegistrations(PropertyRegistrationList list)
This method will be called by getRegistrationList with an empty
list. Implementers can then add each registration to the list.
list - The list to add PropertyRegistrations to. For
consistency, registrations should be added in the order they were encoded
in the PropertyRegistrar instance.Copyright © 2022. All rights reserved.