org.apache.commons.clazz.reflect.common
Class ReflectedMethodInstanceFactory

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.reflect.common.ReflectedMethodFeatureSupport
              extended by org.apache.commons.clazz.reflect.common.ReflectedMethodInstanceFactory
All Implemented Interfaces:
ClazzElement, ClazzFeature, ClazzInstanceFactory

public class ReflectedMethodInstanceFactory
extends ReflectedMethodFeatureSupport
implements ClazzInstanceFactory

A wrapper for a static java method that returns an instance of the Clazz.

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

Constructor Summary
ReflectedMethodInstanceFactory(Clazz declaringClazz, Method method)
          Constructor for ReflectedClazzProperty.
 
Method Summary
 Object newInstance(Object[] parameters)
          Creates a new instance.
 
Methods inherited from class org.apache.commons.clazz.reflect.common.ReflectedMethodFeatureSupport
getMethod, getName, getParameterClazzes, getReturnClazz, getSignature, toString
 
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, wait, wait, wait
 
Methods inherited from interface org.apache.commons.clazz.ClazzInstanceFactory
getName, getParameterClazzes, getSignature
 
Methods inherited from interface org.apache.commons.clazz.ClazzFeature
getDeclaringClazz
 
Methods inherited from interface org.apache.commons.clazz.ClazzElement
getAttribute, getAttributes
 

Constructor Detail

ReflectedMethodInstanceFactory

public ReflectedMethodInstanceFactory(Clazz declaringClazz,
                                      Method method)
Constructor for ReflectedClazzProperty.

Method Detail

newInstance

public Object newInstance(Object[] parameters)
Description copied from interface: ClazzInstanceFactory
Creates a new instance.

Specified by:
newInstance in interface ClazzInstanceFactory
Parameters:
parameters - is the list of parameters. It can be null if the factory takes no parameters.


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