import customizer. You may embed several
elements:
builder.imports {
alias 'AI', 'java.util.concurrent.atomic.AtomicInteger'
alias 'AL', 'java.util.concurrent.atomic.AtomicLong'
}
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public boolean | isHandlesNodeChildren()
Overrides groovy. Implements groovy. |
| public Object | newInstance(final FactoryBuilderSupport
the FactoryBuilder builder, final Object the name of the node being built name, final Object the 'value' argument in the build node value, final Map<K, V> the attributes of the build arg attributes)Implements groovy. |
| public boolean | onNodeChildren(final FactoryBuilderSupport
the FactoryBuilder builder, final Object the node (returned from newINstance) to consider the attributes for node, final Closure<V> the child content closure of the builder childContent)Overrides groovy. Implements groovy. |
| ImportCustomizerFactory | back to summary |
|---|---|
| public ImportCustomizerFactory() | |
| addImport | back to summary |
|---|---|
| private void addImport(final ImportCustomizer customizer, final Object value) | |
| isHandlesNodeChildren | back to summary |
|---|---|
| public boolean isHandlesNodeChildren() Overrides groovy. Implements groovy. Doc from groovy. Does this factory "Own" its child closure.
| |
| newInstance | back to summary |
|---|---|
| public Object newInstance(final FactoryBuilderSupport builder, final Object name, final Object value, final Map<K, V> attributes) throws InstantiationException, IllegalAccessException Implements groovy.
| |
| onNodeChildren | back to summary |
|---|---|
| public boolean onNodeChildren(final FactoryBuilderSupport builder, final Object node, final Closure<V> childContent) Overrides groovy. Implements groovy. Doc from groovy. Only called if it isLeaf is false and isHandlesNodeChildren is true
| |
| Modifier and Type | Field and Description |
|---|---|
| private final ImportCustomizer |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void |
| customizer | back to summary |
|---|---|
| private final ImportCustomizer customizer | |
| ImportHelper | back to summary |
|---|---|
| private ImportHelper(final ImportCustomizer customizer) | |
| alias | back to summary |
|---|---|
| protected void alias(String alias, String name) | |
| alias | back to summary |
|---|---|
| protected void alias(String alias, Class<T> clazz) | |
| normal | back to summary |
|---|---|
| protected void normal(String... names) | |
| normal | back to summary |
|---|---|
| protected void normal(Class<T>... classes) | |
| star | back to summary |
|---|---|
| protected void star(String... packages) | |
| staticMember | back to summary |
|---|---|
| protected void staticMember(String name, String field) | |
| staticMember | back to summary |
|---|---|
| protected void staticMember(String alias, String name, String field) | |
| staticStar | back to summary |
|---|---|
| protected void staticStar(String... classNames) | |
| staticStar | back to summary |
|---|---|
| protected void staticStar(Class<T>... classes) | |