groovy.util
Class FactoryInterceptorMetaClass

java.lang.Object
  extended by groovy.lang.DelegatingMetaClass
      extended by groovy.util.FactoryInterceptorMetaClass
All Implemented Interfaces:
GroovyObject, MetaClass, MetaObjectProtocol, MutableMetaClass

 class FactoryInterceptorMetaClass
extends DelegatingMetaClass


Field Summary
(package private)  FactoryBuilderSupport factory
           
 
Fields inherited from class groovy.lang.DelegatingMetaClass
delegate
 
Constructor Summary
FactoryInterceptorMetaClass(MetaClass delegate, FactoryBuilderSupport factory)
           
 
Method Summary
 java.lang.Object invokeMethod(java.lang.Object object, java.lang.String methodName, java.lang.Object arguments)
          Invokes a method on the given object, with the given name and single argument.
 java.lang.Object invokeMethod(java.lang.Object object, java.lang.String methodName, java.lang.Object[] arguments)
          Invokes a method on the given Object with the given name and arguments.
 
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, setAttribute, setAttribute, setMetaClass, setProperty, setProperty, setProperty, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

factory

FactoryBuilderSupport factory
Constructor Detail

FactoryInterceptorMetaClass

public FactoryInterceptorMetaClass(MetaClass delegate,
                                   FactoryBuilderSupport factory)
Method Detail

invokeMethod

public java.lang.Object invokeMethod(java.lang.Object object,
                                     java.lang.String methodName,
                                     java.lang.Object arguments)
Description copied from interface: MetaObjectProtocol

Invokes a method on the given object, with the given name and single argument.

Specified by:
invokeMethod in interface MetaObjectProtocol
Overrides:
invokeMethod in class DelegatingMetaClass
Parameters:
object - The Object to invoke the method on
methodName - The name of the method
arguments - The argument to the method
Returns:
The return value of the method which is null if the return type is void
See Also:
MetaObjectProtocol.invokeMethod(Object, String, Object[])

invokeMethod

public java.lang.Object invokeMethod(java.lang.Object object,
                                     java.lang.String methodName,
                                     java.lang.Object[] arguments)
Description copied from interface: MetaObjectProtocol

Invokes a method on the given Object with the given name and arguments. The MetaClass will attempt to pick the best method for the given name and arguments. If a method cannot be invoked a MissingMethodException will be thrown.

Specified by:
invokeMethod in interface MetaObjectProtocol
Overrides:
invokeMethod in class DelegatingMetaClass
Parameters:
object - The instance which the method is invoked on
methodName - The name of the method
arguments - The arguments to the method
Returns:
The return value of the method which is null if the return type is void
See Also:
MissingMethodException


Copyright © ${year} The Codehaus. All Rights Reserved.