public interface CreateFromTemplateAttributes
smart templating. Implementations of this class can be registered in the global
Lookup
and allows anyone provide additional parameters to each CreateFromTemplateHandlers
when a template is instantiating.
Implementations are called in the order of appearance in Lookup. The positions less than 0 are
reserved for the platform. Implementations called later can see and override
values defined by earlier CreateFromTemplateAttributes.
Read more in the howto document.
This interface supersedes CreateFromTemplateAttributesProvider in openide.loaders module.| Modifier and Type | Method and Description |
|---|---|
Map<String,?> |
attributesFor(CreateDescriptor desc)
Called when a template is about to be instantiated to provide additional
values to the
CreateFromTemplateHandler that will handle the
template instantiation. |
Map<String,?> attributesFor(CreateDescriptor desc)
CreateFromTemplateHandler that will handle the
template instantiation.
If the returned Map defines the same value as some CreateFromTemplateAttributes registered
earlier, the Map's value takes precedence. Parameters supplied by the FileBuilder cannot be
overriden.desc - the creation requestBuilt on February 21 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.