|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.clazz.common.ClazzElementSupport org.apache.commons.clazz.common.ClazzFeatureSupport org.apache.commons.clazz.bean.BeanClazzConstructorInstanceFactory
public class BeanClazzConstructorInstanceFactory
An instance factory based on a Constructor. The first argument of the
Constructor is always of type Clazz
. This parameter is not
included in the factory signature.
Constructor Summary | |
---|---|
BeanClazzConstructorInstanceFactory(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 BeanClazzConstructorInstanceFactory(Clazz declaringClazz, Constructor constructor)
Method Detail |
---|
public Constructor getConstructor()
public String getName()
ClazzInstanceFactory
getName
in interface ClazzInstanceFactory
public String getSignature()
ClazzInstanceFactory
getSignature
in interface ClazzInstanceFactory
ClazzOperation.getSignature()
public Clazz[] getParameterClazzes()
ClazzInstanceFactory
getParameterClazzes
in interface ClazzInstanceFactory
ClazzOperation.getParameterClazzes()
public Object newInstance(Object[] parameters)
ClazzInstanceFactory
newInstance
in interface ClazzInstanceFactory
parameters
- 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 |