public final class DatabindingPatternRegistration
extends java.lang.Object
DatabindingPatternRegistration.create(<source>)
.withoutPatternProperties("foo", "bar")
.register();
This is a convenience class used primarily to register many patterns and model
providers using the same restrictions. Some convenience functions pass through
information to the RegistrationConfiguration
although this object
can be retrieved directly and manipulated prior to the register() call.
If the same RegistrationConfiguration
is to be used for all patterns,
then using:
DatabindingFrameworkRegistration.setDefaultRegistrationConfiguration(...)
is an option.Modifier and Type | Class and Description |
---|---|
static class |
DatabindingPatternRegistration.Source
The registration source for a set of patterns and related model providers.
|
Modifier and Type | Method and Description |
---|---|
static DatabindingPatternRegistration |
create(DatabindingPatternRegistration.Source source)
Creates a new regisration for the databinding pattern framework.
|
void |
deregister()
Deregisters the source.
|
RegistrationConfiguration |
getRegistrationConfiguration()
Returns the
RegistrationConfiguration to be used in the register call if a more
fine grained approach is required. |
void |
register()
Registers all entities as determined by the source.
|
DatabindingPatternRegistration |
withClassLoader(java.lang.ClassLoader classLoader)
Tells the registration to use the given classloader.
|
DatabindingPatternRegistration |
withoutPatternProperties(java.lang.String... properties)
Tells the registration to only register patterns not containing the properties listed.
|
DatabindingPatternRegistration |
withPatternProperties(java.lang.String... properties)
Tells the registration to only register patterns containing the properties listed.
|
DatabindingPatternRegistration |
withRegistrationConfiguration(RegistrationConfiguration config)
Replaces the registration configuration with the given one.
|
public static DatabindingPatternRegistration create(DatabindingPatternRegistration.Source source)
source
- databindng pattern registration sourcepublic DatabindingPatternRegistration withClassLoader(java.lang.ClassLoader classLoader)
classLoader
- class loader to use for databinding pattern registrationpublic DatabindingPatternRegistration withPatternProperties(java.lang.String... properties)
properties
- property stringspublic DatabindingPatternRegistration withoutPatternProperties(java.lang.String... properties)
properties
- property stringspublic DatabindingPatternRegistration withRegistrationConfiguration(RegistrationConfiguration config)
config
- registration configurationpublic RegistrationConfiguration getRegistrationConfiguration()
RegistrationConfiguration
to be used in the register call if a more
fine grained approach is required.public void register()
public void deregister()