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.
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()
|
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.