Class CustomizersFactory
java.lang.Object
groovy.util.AbstractFactory
org.codehaus.groovy.control.customizers.builder.CustomizersFactory
- All Implemented Interfaces:
Factory
,PostCompletionFactory
This factory generates an array of compilation customizers.
- Since:
- 2.1.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionnewInstance
(FactoryBuilderSupport builder, Object name, Object value, Map attributes) postCompleteNode
(FactoryBuilderSupport factory, Object parent, Object node) void
setChild
(FactoryBuilderSupport builder, Object parent, Object child) Methods inherited from class groovy.util.AbstractFactory
isHandlesNodeChildren, isLeaf, onFactoryRegistration, onHandleNodeAttributes, onNodeChildren, onNodeCompleted, setParent
-
Constructor Details
-
CustomizersFactory
public CustomizersFactory()
-
-
Method Details
-
newInstance
public Object newInstance(FactoryBuilderSupport builder, Object name, Object value, Map attributes) throws InstantiationException, IllegalAccessException - Specified by:
newInstance
in interfaceFactory
- Parameters:
builder
- the FactoryBuildername
- the name of the node being builtvalue
- the 'value' argument in the build nodeattributes
- the attributes of the build arg- Returns:
- the object created for the builder
- Throws:
InstantiationException
- if attempting to instantiate an interface or abstract classIllegalAccessException
- if the instance can't be created due to a security violation
-
setChild
- Specified by:
setChild
in interfaceFactory
- Overrides:
setChild
in classAbstractFactory
-
postCompleteNode
- Specified by:
postCompleteNode
in interfacePostCompletionFactory
-