T - the type of the propertypublic interface ClassPropertyReaderContext<T> extends PropertyReaderContext<T>
PropertyReaderContext which allows to retrieve properties by instantiating a given implementation type,
e.g. specified as fully-qualified class name or class object.| Modifier and Type | Method and Description |
|---|---|
T |
getTypedValue()
Get type of the of the property
|
ClassPropertyReaderContext<T> |
withDefaultImplementation(Class<? extends T> defaultImplementation)
Sets the default implementation type for the property in case no value is found.
|
ClassPropertyReaderContext<T> |
withDefaultImplementation(String defaultImplementationName)
Sets the name of default implementation type for the property in case no value is found.
|
ClassPropertyReaderContext<T> |
withShortNameResolver(ShortNameResolver shortNameResolver)
Sets a short name resolver to be applied in case the property is given as string
|
getValue, instantiate, required, withDefault, withValidatorClassPropertyReaderContext<T> withDefaultImplementation(Class<? extends T> defaultImplementation)
defaultImplementation - the implementation to use if none is configuredClassPropertyReaderContext<T> withDefaultImplementation(String defaultImplementationName)
defaultImplementationName - the implementation to use if none is configuredClassPropertyReaderContext<T> withShortNameResolver(ShortNameResolver shortNameResolver)
shortNameResolver - the resolver to use when an implementation short name is providedT getTypedValue()
Copyright © 2010-2018 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.