org.apache.aries.blueprint.reflect
Class BeanMetadataImpl
java.lang.Object
org.apache.aries.blueprint.reflect.ComponentMetadataImpl
org.apache.aries.blueprint.reflect.BeanMetadataImpl
- All Implemented Interfaces:
- ExtendedBeanMetadata, MutableBeanMetadata, MutableComponentMetadata, BeanMetadata, ComponentMetadata, Metadata, NonNullMetadata, Target
public class BeanMetadataImpl
- extends ComponentMetadataImpl
- implements MutableBeanMetadata
Implementation of BeanMetadata
- Version:
- $Rev$, $Date$
BeanMetadataImpl
public BeanMetadataImpl()
BeanMetadataImpl
public BeanMetadataImpl(BeanMetadata source)
getClassName
public String getClassName()
- Specified by:
getClassName in interface BeanMetadata
setClassName
public void setClassName(String className)
- Specified by:
setClassName in interface MutableBeanMetadata
getInitMethod
public String getInitMethod()
- Specified by:
getInitMethod in interface BeanMetadata
setInitMethod
public void setInitMethod(String initMethodName)
- Specified by:
setInitMethod in interface MutableBeanMetadata
getDestroyMethod
public String getDestroyMethod()
- Specified by:
getDestroyMethod in interface BeanMetadata
setDestroyMethod
public void setDestroyMethod(String destroyMethodName)
- Specified by:
setDestroyMethod in interface MutableBeanMetadata
getArguments
public List<BeanArgument> getArguments()
- Specified by:
getArguments in interface BeanMetadata
setArguments
public void setArguments(List<BeanArgument> arguments)
addArgument
public void addArgument(BeanArgument argument)
- Specified by:
addArgument in interface MutableBeanMetadata
addArgument
public BeanArgument addArgument(Metadata value,
String valueType,
int index)
- Specified by:
addArgument in interface MutableBeanMetadata
removeArgument
public void removeArgument(BeanArgument argument)
- Specified by:
removeArgument in interface MutableBeanMetadata
getProperties
public List<BeanProperty> getProperties()
- Specified by:
getProperties in interface BeanMetadata
setProperties
public void setProperties(List<BeanProperty> properties)
addProperty
public void addProperty(BeanProperty property)
- Specified by:
addProperty in interface MutableBeanMetadata
addProperty
public BeanProperty addProperty(String name,
Metadata value)
- Specified by:
addProperty in interface MutableBeanMetadata
removeProperty
public void removeProperty(BeanProperty property)
- Specified by:
removeProperty in interface MutableBeanMetadata
getFactoryMethod
public String getFactoryMethod()
- Specified by:
getFactoryMethod in interface BeanMetadata
setFactoryMethod
public void setFactoryMethod(String factoryMethodName)
- Specified by:
setFactoryMethod in interface MutableBeanMetadata
getFactoryComponent
public Target getFactoryComponent()
- Specified by:
getFactoryComponent in interface BeanMetadata
setFactoryComponent
public void setFactoryComponent(Target factoryComponent)
- Specified by:
setFactoryComponent in interface MutableBeanMetadata
getScope
public String getScope()
- Specified by:
getScope in interface BeanMetadata
setScope
public void setScope(String scope)
- Specified by:
setScope in interface MutableBeanMetadata
getRuntimeClass
public Class getRuntimeClass()
- Description copied from interface:
ExtendedBeanMetadata
- Provide an actual class, this overrides the class name if set. This is
useful for Namespace Handler services that do not want to force the
Blueprint bundle to import implementation classes.
- Specified by:
getRuntimeClass in interface ExtendedBeanMetadata
- Returns:
- Return the class to use in runtime or
null.
setRuntimeClass
public void setRuntimeClass(Class runtimeClass)
- Specified by:
setRuntimeClass in interface MutableBeanMetadata
isProcessor
public boolean isProcessor()
- Specified by:
isProcessor in interface ExtendedBeanMetadata
setProcessor
public void setProcessor(boolean processor)
- Specified by:
setProcessor in interface MutableBeanMetadata
getFieldInjection
public boolean getFieldInjection()
- Description copied from interface:
ExtendedBeanMetadata
- Whether the bean allows properties to be injected directly into its fields in the case
where an appropriate setter method is not available.
- Specified by:
getFieldInjection in interface ExtendedBeanMetadata
- Returns:
- Whether field injection is allowed
setFieldInjection
public void setFieldInjection(boolean fieldInjection)
- Specified by:
setFieldInjection in interface MutableBeanMetadata
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.