T
- the provided typepublic interface DefinitionProvider<T>
Modifier and Type | Method and Description |
---|---|
T |
get()
Returns the underlying bean if and only if it is successfully resolved, is valid, and is enabled.
|
List<String> |
getErrorMessages() |
DefinitionMetadata |
getMetadata() |
DefinitionRawView |
getRaw()
Returns a
DefinitionRawView representation the underlying bean; it might be
invalid, partially resolved and/or disabled. |
boolean |
isValid() |
DefinitionMetadata getMetadata()
T get() throws Registry.InvalidDefinitionException
Registry.InvalidDefinitionException
- (which is a RuntimeException) if the underlying bean is not successfully resolved, not valid, or not enabled.DefinitionRawView getRaw()
DefinitionRawView
representation the underlying bean; it might be
invalid, partially resolved and/or disabled.boolean isValid()
Copyright © 2003–2015 Magnolia International Ltd.. All rights reserved.