groovytools.builder
Class MetaBuilder.FactoryInterceptorMetaClass

java.lang.Object
  extended by groovy.lang.DelegatingMetaClass
      extended by groovytools.builder.MetaBuilder.FactoryInterceptorMetaClass
All Implemented Interfaces:
GroovyObject, MetaClass, MetaObjectProtocol, MutableMetaClass
Enclosing class:
MetaBuilder

public static class MetaBuilder.FactoryInterceptorMetaClass
extends DelegatingMetaClass

Supports builder scripts by dispatching methods against MetaObjectGraphBuilder.

Borrowed from FactoryBuilderSupport. Is there a reason it wasn't made a public class to begin with?


Field Summary
 
Fields inherited from class groovy.lang.DelegatingMetaClass
delegate
 
Constructor Summary
MetaBuilder.FactoryInterceptorMetaClass(MetaClass delegate, FactoryBuilderSupport factory)
           
 
Method Summary
 Object invokeMethod(Object object, String methodName, Object arguments)
           
 Object invokeMethod(Object object, String methodName, Object[] arguments)
           
 void setAttribute(Class sender, Object receiver, String messageName, Object messageValue, boolean useSuper, boolean fromInsideClass)
           
 void setAttribute(Object object, String attribute, Object newValue)
           
 void setProperty(Class sender, Object receiver, String messageName, Object messageValue, boolean useSuper, boolean fromInsideClass)
           
 void setProperty(Object object, String property, Object newValue)
           
 void setProperty(String property, Object newValue)
           
 
Methods inherited from class groovy.lang.DelegatingMetaClass
addMetaBeanProperty, addMetaMethod, addNewInstanceMethod, addNewStaticMethod, equals, getAdaptee, getAttribute, getAttribute, getClassNode, getMetaClass, getMetaMethod, getMetaMethod, getMetaMethods, getMetaProperty, getMethods, getProperties, getProperty, getProperty, getProperty, getStaticMetaMethod, getStaticMetaMethod, getTheClass, hashCode, hasProperty, initialize, invokeConstructor, invokeMethod, invokeMethod, invokeMissingMethod, invokeMissingProperty, invokeStaticMethod, isGroovyObject, isModified, pickMethod, respondsTo, respondsTo, selectConstructorAndTransformArguments, setAdaptee, setMetaClass, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MetaBuilder.FactoryInterceptorMetaClass

public MetaBuilder.FactoryInterceptorMetaClass(MetaClass delegate,
                                               FactoryBuilderSupport factory)
Method Detail

setProperty

public void setProperty(Object object,
                        String property,
                        Object newValue)
Specified by:
setProperty in interface MetaObjectProtocol
Overrides:
setProperty in class DelegatingMetaClass

setProperty

public void setProperty(String property,
                        Object newValue)
Specified by:
setProperty in interface GroovyObject
Overrides:
setProperty in class DelegatingMetaClass

setProperty

public void setProperty(Class sender,
                        Object receiver,
                        String messageName,
                        Object messageValue,
                        boolean useSuper,
                        boolean fromInsideClass)
Specified by:
setProperty in interface MetaClass
Overrides:
setProperty in class DelegatingMetaClass

setAttribute

public void setAttribute(Object object,
                         String attribute,
                         Object newValue)
Specified by:
setAttribute in interface MetaObjectProtocol
Overrides:
setAttribute in class DelegatingMetaClass

setAttribute

public void setAttribute(Class sender,
                         Object receiver,
                         String messageName,
                         Object messageValue,
                         boolean useSuper,
                         boolean fromInsideClass)
Specified by:
setAttribute in interface MetaClass
Overrides:
setAttribute in class DelegatingMetaClass

invokeMethod

public Object invokeMethod(Object object,
                           String methodName,
                           Object arguments)
Specified by:
invokeMethod in interface MetaObjectProtocol
Overrides:
invokeMethod in class DelegatingMetaClass

invokeMethod

public Object invokeMethod(Object object,
                           String methodName,
                           Object[] arguments)
Specified by:
invokeMethod in interface MetaObjectProtocol
Overrides:
invokeMethod in class DelegatingMetaClass


Copyright © 2008 FoundryLogic, LLC. All Rights Reserved.