org.apache.aries.blueprint
Interface ExtendedBeanMetadata

All Superinterfaces:
BeanMetadata, ComponentMetadata, Metadata, NonNullMetadata, Target
All Known Subinterfaces:
MutableBeanMetadata
All Known Implementing Classes:
BeanMetadataImpl

public interface ExtendedBeanMetadata
extends BeanMetadata

An extended BeanMetadata that allows specifying if the bean instances are processors or not. Such processors have to be instantiated before instantiating all other singletons, but to avoid breaking the lazy activation of bundles, the Blueprint container needs to be aware of those and not try to load the class to perform some introspection.


Field Summary
 
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
 
Method Summary
 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.
 java.lang.Class<?> getRuntimeClass()
          Provide an actual class, this overrides the class name if set.
 boolean isProcessor()
           
 
Methods inherited from interface org.osgi.service.blueprint.reflect.BeanMetadata
getArguments, getClassName, getDestroyMethod, getFactoryComponent, getFactoryMethod, getInitMethod, getProperties, getScope
 
Methods inherited from interface org.osgi.service.blueprint.reflect.ComponentMetadata
getActivation, getDependsOn, getId
 

Method Detail

isProcessor

boolean isProcessor()

getRuntimeClass

java.lang.Class<?> getRuntimeClass()
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.

Returns:
Return the class to use in runtime or null.

getFieldInjection

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.

Returns:
Whether field injection is allowed


Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.