org.apache.aries.blueprint.reflect
Class BeanMetadataImpl

java.lang.Object
  extended by org.apache.aries.blueprint.reflect.ComponentMetadataImpl
      extended by org.apache.aries.blueprint.reflect.BeanMetadataImpl
All Implemented Interfaces:
ExtendedBeanMetadata, MutableBeanMetadata, MutableComponentMetadata, org.osgi.service.blueprint.reflect.BeanMetadata, org.osgi.service.blueprint.reflect.ComponentMetadata, org.osgi.service.blueprint.reflect.Metadata, org.osgi.service.blueprint.reflect.NonNullMetadata, org.osgi.service.blueprint.reflect.Target

public class BeanMetadataImpl
extends ComponentMetadataImpl
implements MutableBeanMetadata

Implementation of BeanMetadata

Version:
$Rev: 1137903 $, $Date: 2011-06-21 09:22:23 +0100 (Tue, 21 Jun 2011) $

Field Summary
 
Fields inherited from class org.apache.aries.blueprint.reflect.ComponentMetadataImpl
activation, dependsOn, id
 
Fields inherited from interface org.osgi.service.blueprint.reflect.BeanMetadata
SCOPE_PROTOTYPE, SCOPE_SINGLETON
 
Fields inherited from interface org.osgi.service.blueprint.reflect.ComponentMetadata
ACTIVATION_EAGER, ACTIVATION_LAZY
 
Constructor Summary
BeanMetadataImpl()
           
BeanMetadataImpl(org.osgi.service.blueprint.reflect.BeanMetadata source)
           
 
Method Summary
 void addArgument(org.osgi.service.blueprint.reflect.BeanArgument argument)
           
 org.osgi.service.blueprint.reflect.BeanArgument addArgument(org.osgi.service.blueprint.reflect.Metadata value, String valueType, int index)
           
 void addProperty(org.osgi.service.blueprint.reflect.BeanProperty property)
           
 org.osgi.service.blueprint.reflect.BeanProperty addProperty(String name, org.osgi.service.blueprint.reflect.Metadata value)
           
 List<org.osgi.service.blueprint.reflect.BeanArgument> getArguments()
           
 String getClassName()
           
 String getDestroyMethod()
           
 org.osgi.service.blueprint.reflect.Target getFactoryComponent()
           
 String getFactoryMethod()
           
 boolean getFieldInjection()
          Whether the bean allows properties to be injected directly into its fields in the case where an appropriate setter method is not available.
 String getInitMethod()
           
 List<org.osgi.service.blueprint.reflect.BeanProperty> getProperties()
           
 Class getRuntimeClass()
          Provide an actual class, this overrides the class name if set.
 String getScope()
           
 boolean isProcessor()
           
 void removeArgument(org.osgi.service.blueprint.reflect.BeanArgument argument)
           
 void removeProperty(org.osgi.service.blueprint.reflect.BeanProperty property)
           
 void setArguments(List<org.osgi.service.blueprint.reflect.BeanArgument> arguments)
           
 void setClassName(String className)
           
 void setDestroyMethod(String destroyMethodName)
           
 void setFactoryComponent(org.osgi.service.blueprint.reflect.Target factoryComponent)
           
 void setFactoryMethod(String factoryMethodName)
           
 void setFieldInjection(boolean fieldInjection)
           
 void setInitMethod(String initMethodName)
           
 void setProcessor(boolean processor)
           
 void setProperties(List<org.osgi.service.blueprint.reflect.BeanProperty> properties)
           
 void setRuntimeClass(Class runtimeClass)
           
 void setScope(String scope)
           
 String toString()
           
 
Methods inherited from class org.apache.aries.blueprint.reflect.ComponentMetadataImpl
addDependsOn, getActivation, getDependsOn, getId, removeDependsOn, setActivation, setDependsOn, setId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.osgi.service.blueprint.reflect.ComponentMetadata
getActivation, getDependsOn, getId
 
Methods inherited from interface org.apache.aries.blueprint.mutable.MutableComponentMetadata
addDependsOn, removeDependsOn, setActivation, setDependsOn, setId
 

Constructor Detail

BeanMetadataImpl

public BeanMetadataImpl()

BeanMetadataImpl

public BeanMetadataImpl(org.osgi.service.blueprint.reflect.BeanMetadata source)
Method Detail

getClassName

public String getClassName()
Specified by:
getClassName in interface org.osgi.service.blueprint.reflect.BeanMetadata

setClassName

public void setClassName(String className)
Specified by:
setClassName in interface MutableBeanMetadata

getInitMethod

public String getInitMethod()
Specified by:
getInitMethod in interface org.osgi.service.blueprint.reflect.BeanMetadata

setInitMethod

public void setInitMethod(String initMethodName)
Specified by:
setInitMethod in interface MutableBeanMetadata

getDestroyMethod

public String getDestroyMethod()
Specified by:
getDestroyMethod in interface org.osgi.service.blueprint.reflect.BeanMetadata

setDestroyMethod

public void setDestroyMethod(String destroyMethodName)
Specified by:
setDestroyMethod in interface MutableBeanMetadata

getArguments

public List<org.osgi.service.blueprint.reflect.BeanArgument> getArguments()
Specified by:
getArguments in interface org.osgi.service.blueprint.reflect.BeanMetadata

setArguments

public void setArguments(List<org.osgi.service.blueprint.reflect.BeanArgument> arguments)

addArgument

public void addArgument(org.osgi.service.blueprint.reflect.BeanArgument argument)
Specified by:
addArgument in interface MutableBeanMetadata

addArgument

public org.osgi.service.blueprint.reflect.BeanArgument addArgument(org.osgi.service.blueprint.reflect.Metadata value,
                                                                   String valueType,
                                                                   int index)
Specified by:
addArgument in interface MutableBeanMetadata

removeArgument

public void removeArgument(org.osgi.service.blueprint.reflect.BeanArgument argument)
Specified by:
removeArgument in interface MutableBeanMetadata

getProperties

public List<org.osgi.service.blueprint.reflect.BeanProperty> getProperties()
Specified by:
getProperties in interface org.osgi.service.blueprint.reflect.BeanMetadata

setProperties

public void setProperties(List<org.osgi.service.blueprint.reflect.BeanProperty> properties)

addProperty

public void addProperty(org.osgi.service.blueprint.reflect.BeanProperty property)
Specified by:
addProperty in interface MutableBeanMetadata

addProperty

public org.osgi.service.blueprint.reflect.BeanProperty addProperty(String name,
                                                                   org.osgi.service.blueprint.reflect.Metadata value)
Specified by:
addProperty in interface MutableBeanMetadata

removeProperty

public void removeProperty(org.osgi.service.blueprint.reflect.BeanProperty property)
Specified by:
removeProperty in interface MutableBeanMetadata

getFactoryMethod

public String getFactoryMethod()
Specified by:
getFactoryMethod in interface org.osgi.service.blueprint.reflect.BeanMetadata

setFactoryMethod

public void setFactoryMethod(String factoryMethodName)
Specified by:
setFactoryMethod in interface MutableBeanMetadata

getFactoryComponent

public org.osgi.service.blueprint.reflect.Target getFactoryComponent()
Specified by:
getFactoryComponent in interface org.osgi.service.blueprint.reflect.BeanMetadata

setFactoryComponent

public void setFactoryComponent(org.osgi.service.blueprint.reflect.Target factoryComponent)
Specified by:
setFactoryComponent in interface MutableBeanMetadata

getScope

public String getScope()
Specified by:
getScope in interface org.osgi.service.blueprint.reflect.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.