Groovy 2.2.0

org.codehaus.groovy.control.customizers.builder
[Java] Class ImportCustomizerFactory

java.lang.Object
  groovy.util.AbstractFactory
      org.codehaus.groovy.control.customizers.builder.ImportCustomizerFactory

public class ImportCustomizerFactory
extends AbstractFactory

This factory allows the generation of an import customizer. You may embed several elements:

For example:
builder.imports {
 alias 'AI', 'java.util.concurrent.atomic.AtomicInteger'
 alias 'AL', 'java.util.concurrent.atomic.AtomicLong'
}
Authors:
Cedric Champeau
Since:
2.1.0


Method Summary
boolean isHandlesNodeChildren()

Object newInstance(FactoryBuilderSupport builder, Object name, Object value, Map attributes)

boolean onNodeChildren(FactoryBuilderSupport builder, Object node, Closure childContent)

 
Methods inherited from class AbstractFactory
isHandlesNodeChildren, isLeaf, onFactoryRegistration, onHandleNodeAttributes, onNodeChildren, onNodeCompleted, setChild, setParent
 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Method Detail

isHandlesNodeChildren

@Override
public boolean isHandlesNodeChildren()


newInstance

public Object newInstance(FactoryBuilderSupport builder, Object name, Object value, Map attributes)


onNodeChildren

@Override
public boolean onNodeChildren(FactoryBuilderSupport builder, Object node, Closure childContent)


 

Copyright © 2003-2013 The Codehaus. All rights reserved.