public class ImportCustomizerFactory
extends AbstractFactory
This factory allows the generation of an import customizer. You may embed several elements:
builder.imports {
alias 'AI', 'java.util.concurrent.atomic.AtomicInteger'
alias 'AL', 'java.util.concurrent.atomic.AtomicLong'
}
| Type Params | Return Type | Name and description |
|---|---|---|
|
public boolean |
isHandlesNodeChildren()Indicates that import customizer nodes accept nested closure content. |
|
public Object |
newInstance(FactoryBuilderSupport builder, Object name, Object value, Map attributes)Creates an import customizer and applies any inline import value. |
|
public boolean |
onNodeChildren(FactoryBuilderSupport builder, Object node, Closure childContent)Executes nested builder content against a helper bound to the import customizer. |
| Methods inherited from class | Name |
|---|---|
class AbstractFactory |
isHandlesNodeChildren, isLeaf, onFactoryRegistration, onHandleNodeAttributes, onNodeChildren, onNodeCompleted, setChild, setParent |
Indicates that import customizer nodes accept nested closure content.
trueCreates an import customizer and applies any inline import value.
builder - the active buildername - the node namevalue - the supplied node valueattributes - the node attributesExecutes nested builder content against a helper bound to the import customizer.
builder - the active buildernode - the current nodechildContent - the nested closure contentfalse to continue normal processing