com.abra.j2xb.beans.model
Class MOConstructorFacade
java.lang.Object
com.abra.j2xb.beans.model.MOConstructorFacade
public class MOConstructorFacade
- extends java.lang.Object
- Since:
- JDK1.5
- Version:
- 1.0, May 1, 2008
- Author:
- Yoav Abrahami
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MOConstructorFacade
public MOConstructorFacade(MOBeanDescriptor beanDescriptor,
java.lang.reflect.AnnotatedElement theBeanClass)
newInstance
public java.lang.Object newInstance(java.lang.Object parentInstance,
MOConstructorFacadeParamValues providedArgValues,
MOBeanDescriptor concreteBeanDescriptor)
throws MOBeanInstansationException
- constucts a new instance and initializes it as specified in the construction description member.
- Parameters:
parentInstance
- - the parent instance is used to initialize implied properties of a component object
(can be null).providedArgValues
- - values for use in the constructor, that thier source are properties of the constructed
instance.concreteBeanDescriptor
- - the bean descriptor of the actual bean class to create. In most cases, this
will be the same as the beanDescriptor
member. However, in cases of substitution groups of inherited
beans in collections or bean properties, this bean descriptor can be a descriptor of a subclass of the
- Returns:
- the constructed bean instance.
- Throws:
MOBeanInstansationException
- - describing a possible failure to instantiate the bean
getConstructorArgs
public MOConstructorArg[] getConstructorArgs()
getInitializerProperties
public MOInitializerProperty[] getInitializerProperties()
getConstructionDescriptor
public MOConstructionDescriptor getConstructionDescriptor()
getParentBeanDescriptor
public MOBeanDescriptor getParentBeanDescriptor()
getBeanDescriptor
public MOBeanDescriptor getBeanDescriptor()
validateDefinitions
public void validateDefinitions()
throws MOBeansException,
java.beans.IntrospectionException
- Throws:
MOBeansException
java.beans.IntrospectionException
Copyright © 2008. All Rights Reserved.