org.apache.commons.clazz.bean
Class BeanClazzOperation

java.lang.Object
  extended by org.apache.commons.clazz.common.ClazzElementSupport
      extended by org.apache.commons.clazz.common.ClazzFeatureSupport
          extended by org.apache.commons.clazz.bean.BeanClazzOperation
All Implemented Interfaces:
ClazzElement, ClazzFeature, ClazzOperation

public abstract class BeanClazzOperation
extends ClazzFeatureSupport
implements ClazzOperation

Version:
$Id: BeanClazzOperation.java 155436 2005-02-26 13:17:48Z dirkv $
Author:
Dmitri Plotnikov

Constructor Summary
BeanClazzOperation(Clazz declaringClazz, String returnClazzName, String name, String[] parameterClazzNames)
          Constructor for BeanClazzOperaiton.
 
Method Summary
 String getName()
           
 Clazz[] getParameterClazzes()
           
 Clazz getReturnClazz()
           
 String getSignature()
           
abstract  Object invoke(Object target, Object[] parameters)
           
 
Methods inherited from class org.apache.commons.clazz.common.ClazzFeatureSupport
getDeclaringClazz
 
Methods inherited from class org.apache.commons.clazz.common.ClazzElementSupport
getAttribute, getAttributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.commons.clazz.ClazzFeature
getDeclaringClazz
 
Methods inherited from interface org.apache.commons.clazz.ClazzElement
getAttribute, getAttributes
 

Constructor Detail

BeanClazzOperation

public BeanClazzOperation(Clazz declaringClazz,
                          String returnClazzName,
                          String name,
                          String[] parameterClazzNames)
Constructor for BeanClazzOperaiton.

Parameters:
declaringClazz - the Clazz this Operation belongs to
returnClazzName - the return type of the operation, pass null for void.
name - the name of the operation.
parameterClazzNames - types of operation parameters, pass null if the operation does not take any parameters.
Method Detail

getSignature

public String getSignature()
Specified by:
getSignature in interface ClazzOperation
See Also:
ClazzOperation.getSignature()

getName

public String getName()
Specified by:
getName in interface ClazzOperation
See Also:
ClazzOperation.getName()

getParameterClazzes

public Clazz[] getParameterClazzes()
Specified by:
getParameterClazzes in interface ClazzOperation
See Also:
ClazzOperation.getParameterClazzes()

getReturnClazz

public Clazz getReturnClazz()
Specified by:
getReturnClazz in interface ClazzOperation
See Also:
ClazzOperation.getReturnClazz()

invoke

public abstract Object invoke(Object target,
                              Object[] parameters)
Specified by:
invoke in interface ClazzOperation
See Also:
ClazzOperation.invoke(Object, Object[])


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.