public class ImportCustomizerFactory extends AbstractFactory
import customizer. You may embed several
elements:
builder.imports {
alias 'AI', 'java.util.concurrent.atomic.AtomicInteger'
alias 'AL', 'java.util.concurrent.atomic.AtomicLong'
}| Constructor and Description |
|---|
ImportCustomizerFactory() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isHandlesNodeChildren()
Does this factory "Own" it's child closure.
|
java.lang.Object |
newInstance(FactoryBuilderSupport builder,
java.lang.Object name,
java.lang.Object value,
java.util.Map attributes) |
boolean |
onNodeChildren(FactoryBuilderSupport builder,
java.lang.Object node,
Closure childContent)
Only called if it isLeaf is false and isHandlesNodeChildren is true
|
isLeaf, onFactoryRegistration, onHandleNodeAttributes, onNodeCompleted, setChild, setParentpublic boolean isHandlesNodeChildren()
FactoryisHandlesNodeChildren in interface FactoryisHandlesNodeChildren in class AbstractFactorypublic java.lang.Object newInstance(FactoryBuilderSupport builder, java.lang.Object name, java.lang.Object value, java.util.Map attributes) throws java.lang.InstantiationException, java.lang.IllegalAccessException
builder - the FactoryBuildername - the name of the node being builtvalue - the 'value' argument in the build nodeattributes - the attributes of the build argjava.lang.InstantiationException - if attempting to instantiate an interface or abstract classjava.lang.IllegalAccessException - if the instance can't be created due to a security violationpublic boolean onNodeChildren(FactoryBuilderSupport builder, java.lang.Object node, Closure childContent)
FactoryonNodeChildren in interface FactoryonNodeChildren in class AbstractFactorybuilder - the FactoryBuildernode - the node (returned from newINstance) to consider the attributes forchildContent - the child content closure of the builder