org.jboss.beans.metadata.plugins
Class AbstractConstructorMetaData

java.lang.Object
  extended by org.jboss.util.JBossObject
      extended by org.jboss.beans.metadata.plugins.AbstractFeatureMetaData
          extended by org.jboss.beans.metadata.plugins.AbstractConstructorMetaData
All Implemented Interfaces:
Serializable, Cloneable, MutableParameterizedMetaData, TypeProvider, ValueMetaDataAware, ConstructorMetaData, FeatureMetaData, MetaDataVisitorNode, ParameterizedMetaData, org.jboss.util.JBossInterface

public class AbstractConstructorMetaData
extends AbstractFeatureMetaData
implements ConstructorMetaData, MutableParameterizedMetaData, ValueMetaDataAware, Serializable

Metadata for construction.

Version:
$Revision: 84514 $
Author:
Ales Justin, Adrian Brock
See Also:
Serialized Form

Field Summary
protected  ValueMetaData factory
          The factory
protected  String factoryClassName
          The factory class name
protected  String factoryMethod
          The factory method
protected  List<ParameterMetaData> parameters
          The paramaters List
protected  ValueMetaData value
          The value
 
Fields inherited from class org.jboss.util.JBossObject
hashCode, log, toString
 
Fields inherited from interface org.jboss.beans.metadata.plugins.TypeProvider
ERROR_MSG
 
Constructor Summary
AbstractConstructorMetaData()
          Create a new constructor meta data
 
Method Summary
protected  void addChildren(Set<MetaDataVisitorNode> children)
           
 AbstractConstructorMetaData clone()
          Clone the object
protected  void doClone(AbstractConstructorMetaData clone)
           
 ValueMetaData getFactory()
          Get the factory.
 String getFactoryClass()
          Get the factory class.
 String getFactoryMethod()
          Get the factory method.
 List<ParameterMetaData> getParameters()
          Get the parameters.
 org.jboss.reflect.spi.TypeInfo getType(MetaDataVisitor visitor, MetaDataVisitorNode previous)
          Get the injectee type info.
 ValueMetaData getValue()
          Get the value.
 void initialVisit(MetaDataVisitor visitor)
          Visit the node
 void setFactory(ValueMetaData factory)
          Set the factory
 void setFactoryClass(String name)
          Set the factory class name
 void setFactoryMethod(String name)
          Set the factory method
 void setParameters(List<ParameterMetaData> parameters)
          Set the parameters
 void setValue(ValueMetaData value)
          Set the value
 void setValueObject(Object value)
           
 void toString(org.jboss.util.JBossStringBuilder buffer)
           
 
Methods inherited from class org.jboss.beans.metadata.plugins.AbstractFeatureMetaData
applyCollectionOrMapCheck, describeVisit, doClone, getAnnotations, getChildren, getDescription, setAnnotations, setDescription, toShortString
 
Methods inherited from class org.jboss.util.JBossObject
cacheGetHashCode, cacheToString, equals, flushJBossObjectCache, getClassShortName, getHashCode, hashCode, list, notEqual, toShortString, toString, toStringImplementation
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jboss.beans.metadata.spi.FeatureMetaData
getAnnotations, getDescription
 
Methods inherited from interface org.jboss.util.JBossInterface
toShortString, toShortString
 
Methods inherited from interface org.jboss.beans.metadata.spi.MetaDataVisitorNode
describeVisit, getChildren
 

Field Detail

parameters

protected List<ParameterMetaData> parameters
The paramaters List


value

protected ValueMetaData value
The value


factory

protected ValueMetaData factory
The factory


factoryClassName

protected String factoryClassName
The factory class name


factoryMethod

protected String factoryMethod
The factory method

Constructor Detail

AbstractConstructorMetaData

public AbstractConstructorMetaData()
Create a new constructor meta data

Method Detail

setParameters

public void setParameters(List<ParameterMetaData> parameters)
Set the parameters

Specified by:
setParameters in interface MutableParameterizedMetaData
Parameters:
parameters - List

setValue

public void setValue(ValueMetaData value)
Set the value

Specified by:
setValue in interface ValueMetaDataAware
Parameters:
value - the value

setValueObject

public void setValueObject(Object value)

setFactory

public void setFactory(ValueMetaData factory)
Set the factory

Parameters:
factory - the factory

setFactoryClass

public void setFactoryClass(String name)
Set the factory class name

Parameters:
name - the factory class name

setFactoryMethod

public void setFactoryMethod(String name)
Set the factory method

Parameters:
name - the factory method

getParameters

public List<ParameterMetaData> getParameters()
Description copied from interface: ParameterizedMetaData
Get the parameters.

Specified by:
getParameters in interface ParameterizedMetaData
Returns:
List.

getValue

public ValueMetaData getValue()
Description copied from interface: ConstructorMetaData
Get the value.

Specified by:
getValue in interface ValueMetaDataAware
Specified by:
getValue in interface ConstructorMetaData
Returns:
the value.

getFactory

public ValueMetaData getFactory()
Description copied from interface: ConstructorMetaData
Get the factory.

Specified by:
getFactory in interface ConstructorMetaData
Returns:
the factory.

getFactoryClass

public String getFactoryClass()
Description copied from interface: ConstructorMetaData
Get the factory class.

Specified by:
getFactoryClass in interface ConstructorMetaData
Returns:
the class name of the factory.

getFactoryMethod

public String getFactoryMethod()
Description copied from interface: ConstructorMetaData
Get the factory method.

Specified by:
getFactoryMethod in interface ConstructorMetaData
Returns:
the factory method.

initialVisit

public void initialVisit(MetaDataVisitor visitor)
Description copied from interface: MetaDataVisitorNode
Visit the node

Specified by:
initialVisit in interface MetaDataVisitorNode
Overrides:
initialVisit in class AbstractFeatureMetaData
Parameters:
visitor - the visitor

addChildren

protected void addChildren(Set<MetaDataVisitorNode> children)
Overrides:
addChildren in class AbstractFeatureMetaData

getType

public org.jboss.reflect.spi.TypeInfo getType(MetaDataVisitor visitor,
                                              MetaDataVisitorNode previous)
                                       throws Throwable
Description copied from interface: TypeProvider
Get the injectee type info.

Specified by:
getType in interface TypeProvider
Parameters:
visitor - meda data visitor
previous - previous node in the stack
Returns:
TypeInfo type info for injection ByClass
Throws:
Throwable - if could not determine class

toString

public void toString(org.jboss.util.JBossStringBuilder buffer)
Overrides:
toString in class AbstractFeatureMetaData

clone

public AbstractConstructorMetaData clone()
Description copied from interface: MetaDataVisitorNode
Clone the object

Specified by:
clone in interface MetaDataVisitorNode
Specified by:
clone in interface org.jboss.util.JBossInterface
Overrides:
clone in class org.jboss.util.JBossObject
Returns:
a clone of the object

doClone

protected void doClone(AbstractConstructorMetaData clone)


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.