| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the factory should have onContentClosure() called, false if the builder should handle itDoes this factory "Own" its child closure. |
| public boolean | |
| public Object | Returns: the object created for the builderthe FactoryBuilder builder, Object the name of the node being built name, Object the 'value' argument in the build node value, Map<K, V> the attributes of the build arg attributes)
|
| public void | onFactoryRegistration(FactoryBuilderSupport
the build the factory has been registered to builder, String the name the factory has been registered under registeredName, String registeredGroupName)Called when a factory is registered to a builder |
| public boolean | Returns: true if the factory builder should use standard bean property matching for the remaining attributesthe FactoryBuilder builder, Object the node (returned from newINstance) to consider the attributes for node, Map<K, V> the attributes, a mutable set attributes)
|
| public boolean | Returns: true if the factory builder should apply default node processing to the content childthe FactoryBuilder builder, Object the node (returned from newINstance) to consider the attributes for node, Closure<V> the child content closure of the builder childContent)Only called if it isLeaf is false and isHandlesNodeChildren is true |
| public void | onNodeCompleted(FactoryBuilderSupport
the FactoryBuilder builder, Object the parent node (null if 'root') parent, Object the node just completed node)
|
| public void | |
| public void |
| isHandlesNodeChildren | back to summary |
|---|---|
| public boolean isHandlesNodeChildren() Does this factory "Own" its child closure.
| |
| isLeaf | back to summary |
|---|---|
public boolean isLeaf()
| |
| newInstance | back to summary |
|---|---|
public Object newInstance(FactoryBuilderSupport builder, Object name, Object value, Map<K, V> attributes) throws InstantiationException, IllegalAccessException
| |
| onFactoryRegistration | back to summary |
|---|---|
| public void onFactoryRegistration(FactoryBuilderSupport builder, String registeredName, String registeredGroupName) Called when a factory is registered to a builder
| |
| onHandleNodeAttributes | back to summary |
|---|---|
public boolean onHandleNodeAttributes(FactoryBuilderSupport builder, Object node, Map<K, V> attributes)
| |
| onNodeChildren | back to summary |
|---|---|
| public boolean onNodeChildren(FactoryBuilderSupport builder, Object node, Closure<V> childContent) Only called if it isLeaf is false and isHandlesNodeChildren is true
| |
| onNodeCompleted | back to summary |
|---|---|
public void onNodeCompleted(FactoryBuilderSupport builder, Object parent, Object node)
| |
| setChild | back to summary |
|---|---|
| public void setChild(FactoryBuilderSupport builder, Object parent, Object child) | |
| setParent | back to summary |
|---|---|
| public void setParent(FactoryBuilderSupport builder, Object parent, Object child) | |