public class AttributeInjectorImpl extends Object implements AttributeInjector
| Constructor and Description |
|---|
AttributeInjectorImpl(AttributeRegistry attributeRegistry) |
| Modifier and Type | Method and Description |
|---|---|
Metacard |
injectAttributes(Metacard original)
'Injects'
AttributeDescriptors (represented by 'global' InjectableAttributes
and InjectableAttributes specific to original's metacard type) into the given
Metacard by returning a new Metacard with the same data as original but
with a new MetacardType containing the additional injected AttributeDescriptors. |
MetacardType |
injectAttributes(MetacardType original)
'Injects'
AttributeDescriptors (represented by 'global' InjectableAttributes
and InjectableAttributes specific to original) into the given MetacardType by returning a new MetacardType with the same name as original
and containing the additional injected AttributeDescriptors. |
void |
setInjectableAttributes(List<InjectableAttribute> injectableAttributes) |
public AttributeInjectorImpl(AttributeRegistry attributeRegistry)
public void setInjectableAttributes(List<InjectableAttribute> injectableAttributes)
public MetacardType injectAttributes(MetacardType original)
AttributeInjectorAttributeDescriptors (represented by 'global' InjectableAttributes
and InjectableAttributes specific to original) into the given MetacardType by returning a new MetacardType with the same name as original
and containing the additional injected AttributeDescriptors.
If there are no attributes to inject for the given MetacardType, original is
returned.
injectAttributes in interface AttributeInjectororiginal - the original MetacardType, cannot be nullMetacardType with the same name as original and containing the
additional injected AttributeDescriptors, or original if there are no
attributes to injectpublic Metacard injectAttributes(Metacard original)
AttributeInjectorAttributeDescriptors (represented by 'global' InjectableAttributes
and InjectableAttributes specific to original's metacard type) into the given
Metacard by returning a new Metacard with the same data as original but
with a new MetacardType containing the additional injected AttributeDescriptors.
If there are no attributes to inject for the given Metacard's metacard type, original is returned.
injectAttributes in interface AttributeInjectororiginal - the original Metacard, cannot be nullMetacard containing the same data as original but with a new
MetacardType containing the additional injected AttributeDescriptors, or
original if there are no attributes to injectThis work is licensed under a Creative Commons Attribution 4.0 International License.