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