org.jboss.beans.metadata.spi
Interface BeanMetaData

All Superinterfaces:
Cloneable, FeatureMetaData, org.jboss.util.JBossInterface, MetaDataVisitorNode, ValueMetaData
All Known Subinterfaces:
LazyMetaData
All Known Implementing Classes:
AbstractBeanMetaData, AbstractLazyMetaData, GenericBeanFactoryMetaData

public interface BeanMetaData
extends FeatureMetaData, ValueMetaData

Metadata about a bean.

Version:
$Revision: 76312 $
Author:
Adrian Brock, Ales Justin

Method Summary
 org.jboss.beans.info.spi.BeanAccessMode getAccessMode()
          Get the access mode
 Set<Object> getAliases()
          The aliases
 Set<AnnotationMetaData> getAnnotations()
          Get the annotations
 AutowireType getAutowireType()
          Get the autowire type.
 String getBean()
          Get the bean.
 ClassLoaderMetaData getClassLoader()
          Get the bean ClassLoader
 ConstructorMetaData getConstructor()
          Get the constructor
 LifecycleMetaData getCreate()
          Get the create lifecycle
 Set<DemandMetaData> getDemands()
          Get what this bean demands.
 Set<DependencyMetaData> getDepends()
          Get what this bean depends.
 LifecycleMetaData getDestroy()
          Get the destroy lifecycle
 ErrorHandlingMode getErrorHandlingMode()
          Get error handling mode
 List<CallbackMetaData> getInstallCallbacks()
          Get the installation oeprations.
 List<InstallMetaData> getInstalls()
          Get the installation oeprations.
 ControllerMode getMode()
          Get the mode
 String getName()
          Get the name
 String getParent()
          Get the parent.
 Set<PropertyMetaData> getProperties()
          Get the properties.
 Set<RelatedClassMetaData> getRelated()
          Get the related classes.
 LifecycleMetaData getStart()
          Get the start lifecycle
 LifecycleMetaData getStop()
          Get the stop lifecycle
 Set<SupplyMetaData> getSupplies()
          Get what this bean supplies.
 List<CallbackMetaData> getUninstallCallbacks()
          Get the uninstallation operations.
 List<InstallMetaData> getUninstalls()
          Get the uninstallation operations.
 boolean isAbstract()
          Is abstract metadata.
 boolean isAutowireCandidate()
          Is this bean is a candidate for getting injected via contextual matching or callback resolution.
 void setAnnotations(Set<AnnotationMetaData> annotations)
          Set the annotations
 void setClassLoader(ClassLoaderMetaData classLoader)
          Set the bean ClassLoader
 void setMode(ControllerMode mode)
          Set the name
 void setName(String name)
          Set the name
 
Methods inherited from interface org.jboss.beans.metadata.spi.FeatureMetaData
getDescription
 
Methods inherited from interface org.jboss.beans.metadata.spi.ValueMetaData
getUnderlyingValue, getValue
 
Methods inherited from interface org.jboss.util.JBossInterface
clone, toShortString, toShortString
 
Methods inherited from interface org.jboss.beans.metadata.spi.MetaDataVisitorNode
clone, describeVisit, getChildren, initialVisit
 

Method Detail

getBean

String getBean()
Get the bean.

Returns:
the bean.

getName

String getName()
Get the name

Returns:
the name

getRelated

Set<RelatedClassMetaData> getRelated()
Get the related classes.

Returns:
the related classes

setName

void setName(String name)
Set the name

Parameters:
name - the name

getAliases

Set<Object> getAliases()
The aliases

Returns:
the aliases or null if there are no aliases

getParent

String getParent()
Get the parent.

Returns:
the parent

isAbstract

boolean isAbstract()
Is abstract metadata.

Returns:
is abstract

getAutowireType

AutowireType getAutowireType()
Get the autowire type.

Returns:
the autowire type

getMode

ControllerMode getMode()
Get the mode

Returns:
the mode

setMode

void setMode(ControllerMode mode)
Set the name

Parameters:
mode - the mode

getErrorHandlingMode

ErrorHandlingMode getErrorHandlingMode()
Get error handling mode

Returns:
the error handling mode

getAccessMode

org.jboss.beans.info.spi.BeanAccessMode getAccessMode()
Get the access mode

Returns:
the access mode

isAutowireCandidate

boolean isAutowireCandidate()
Is this bean is a candidate for getting injected via contextual matching or callback resolution.

Returns:
true (default) if used for autowiring

getAnnotations

Set<AnnotationMetaData> getAnnotations()
Get the annotations

Specified by:
getAnnotations in interface FeatureMetaData
Returns:
the bean annotations

setAnnotations

void setAnnotations(Set<AnnotationMetaData> annotations)
Set the annotations

Parameters:
annotations - the annotations

getProperties

Set<PropertyMetaData> getProperties()
Get the properties.

Returns:
List.

getClassLoader

ClassLoaderMetaData getClassLoader()
Get the bean ClassLoader

Returns:
the ClassLoader metadata

setClassLoader

void setClassLoader(ClassLoaderMetaData classLoader)
Set the bean ClassLoader

Parameters:
classLoader - the ClassLoader metadata

getConstructor

ConstructorMetaData getConstructor()
Get the constructor

Returns:
the constructor metadata

getCreate

LifecycleMetaData getCreate()
Get the create lifecycle

Returns:
the create lifecycle

getStart

LifecycleMetaData getStart()
Get the start lifecycle

Returns:
the start lifecycle

getStop

LifecycleMetaData getStop()
Get the stop lifecycle

Returns:
the stop lifecycle

getDestroy

LifecycleMetaData getDestroy()
Get the destroy lifecycle

Returns:
the destroy lifecycle

getDemands

Set<DemandMetaData> getDemands()
Get what this bean demands.

Returns:
Set

getSupplies

Set<SupplyMetaData> getSupplies()
Get what this bean supplies.

Returns:
Set

getDepends

Set<DependencyMetaData> getDepends()
Get what this bean depends.

Returns:
Set

getInstalls

List<InstallMetaData> getInstalls()
Get the installation oeprations.

Returns:
List

getUninstalls

List<InstallMetaData> getUninstalls()
Get the uninstallation operations.

Returns:
List

getInstallCallbacks

List<CallbackMetaData> getInstallCallbacks()
Get the installation oeprations.

Returns:
List

getUninstallCallbacks

List<CallbackMetaData> getUninstallCallbacks()
Get the uninstallation operations.

Returns:
List


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.