|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.clazz.common.ClazzElementSupport
org.apache.commons.clazz.common.ClazzFeatureSupport
org.apache.commons.clazz.reflect.common.ReflectedConstructorInstanceFactory
public class ReflectedConstructorInstanceFactory
A wrapper for a java constructor.
| Constructor Summary | |
|---|---|
ReflectedConstructorInstanceFactory(Clazz declaringClazz,
Constructor constructor)
Constructor for ReflectedClazzProperty. |
|
| Method Summary | |
|---|---|
Constructor |
getConstructor()
|
String |
getName()
Returns the name of the factory. |
Clazz[] |
getParameterClazzes()
Returns the factory parameter types. |
String |
getSignature()
Returns the signature of the factory in the format "factoryName(paramType1,...)", where "factoryName" may be empty. |
Object |
newInstance(Object[] parameters)
Creates a new instance. |
String |
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.ClazzFeature |
|---|
getDeclaringClazz |
| Methods inherited from interface org.apache.commons.clazz.ClazzElement |
|---|
getAttribute, getAttributes |
| Constructor Detail |
|---|
public ReflectedConstructorInstanceFactory(Clazz declaringClazz,
Constructor constructor)
| Method Detail |
|---|
public Constructor getConstructor()
public String getName()
ClazzInstanceFactory
getName in interface ClazzInstanceFactorypublic String getSignature()
ClazzInstanceFactory
getSignature in interface ClazzInstanceFactoryClazzOperation.getSignature()public Clazz[] getParameterClazzes()
ClazzInstanceFactory
getParameterClazzes in interface ClazzInstanceFactoryClazzOperation.getParameterClazzes()public Object newInstance(Object[] parameters)
ClazzInstanceFactory
newInstance in interface ClazzInstanceFactoryparameters - is the list of parameters. It can be null if the
factory takes no parameters.public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||