public final class InjectableTextResource extends AbstractInjectableResource
Constructor and Description |
---|
InjectableTextResource(Key key,
TextResource resource)
Creates an injectable resources using the text of it and the name as key, passed as argument.
|
InjectableTextResource(String name,
TextResource resource)
Creates an injectable resources using the text of it and the name, passed as argument.
|
InjectableTextResource(TextResource resource)
Creates an injectable resources using the name of text resource and the text of it.
|
public InjectableTextResource(TextResource resource)
resource
- text resource to be injected.public InjectableTextResource(Key key, TextResource resource)
key
- name of injectable resource as key , should be a unique value in the DOM.resource
- text resource to be injected.public InjectableTextResource(String name, TextResource resource)
name
- name of injectable resource, should be a unique value in the DOM.resource
- text resource to be injected.