public class PropertyRegistrarLoader extends Object
| Constructor and Description |
|---|
PropertyRegistrarLoader()
New instance with default class loader (class.getClassLoader())
|
PropertyRegistrarLoader(ClassLoader classLoader)
New instance w/ specific classloader
|
| Modifier and Type | Method and Description |
|---|---|
List<GroupProxy> |
getGroups()
Returns a newly created list of
GroupProxys. |
List<PropertyRegistrar> |
getPropertyRegistrars()
Returns a newly created list of
PropertyRegistrars. |
public PropertyRegistrarLoader()
public PropertyRegistrarLoader(ClassLoader classLoader)
classLoader - Classloader to use to locate PropertyRegistration
instances.public List<PropertyRegistrar> getPropertyRegistrars()
PropertyRegistrars.
The PropertyRegistrar instances are created from the complete set
of PropertyRegistrar implementations on the classpath. This is a
complete list as provided by the java.util.ServiceLoader.
Even though the list is newly created each time this method is called,
the instances of PropertyRegistrars are the same across all lists.
During a typical application lifecycle, this method would only be called
once, though there is no impact to calling it multiple times.
PropertyRegistrars.public List<GroupProxy> getGroups()
GroupProxys.
The GroupProxy instances are created from the complete set of
PropertyRegistrar implementations on the classpath. This is a
complete list as provided by the java.util.ServiceLoader.
The list and the GroupProxy instances are freshly created for
each call to this method. During a typical application lifecycle, this
method would only be called once, though there is no impact to calling it
multiple times. The contained Propertys are static instances
for which there will ever only be a single instance.
GroupProxys.Copyright © 2022. All rights reserved.