org.openide.loaders 7.10.1

org.openide.loaders
Interface CreateFromTemplateAttributesProvider


public interface CreateFromTemplateAttributesProvider

This is an interface for 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. Read more in the howto document.

Since:
6.3

Method Summary
 Map<String,?> attributesFor(DataObject template, DataFolder target, String name)
          Called when a template is about to be instantiated to provide additional values to the CreateFromTemplateHandler that will handle the template instantiation.
 

Method Detail

attributesFor

Map<String,?> attributesFor(DataObject template,
                            DataFolder target,
                            String name)
Called when a template is about to be instantiated to provide additional values to the CreateFromTemplateHandler that will handle the template instantiation.

Parameters:
template - the template that is being processed
target - the destination folder
name - the name of the object to create
Returns:
map of named objects, or null

org.openide.loaders 7.10.1

Built on December 7 2010.  |  Portions Copyright 1997-2010 Sun Microsystems, Inc. All rights reserved.