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: 64331 $
Author:
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.beans.metadata.plugins.AbstractFeatureMetaData
annotations, description
 
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)
           
 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 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 toString(org.jboss.util.JBossStringBuilder buffer)
           
 
Methods inherited from class org.jboss.beans.metadata.plugins.AbstractFeatureMetaData
applyCollectionOrMapCheck, describeVisit, getAnnotations, getChildren, getDescription, initialVisit, setAnnotations, setDescription, toShortString
 
Methods inherited from class org.jboss.util.JBossObject
cacheGetHashCode, cacheToString, clone, 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
clone, toShortString, toShortString
 
Methods inherited from interface org.jboss.beans.metadata.spi.MetaDataVisitorNode
describeVisit, getChildren, initialVisit
 

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

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: ValueMetaDataAware
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.

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


Copyright ? 2007 JBoss Inc.. All Rights Reserved.