org.jboss.beans.metadata.api.annotations
Annotation Type Bean


@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface Bean

Mark the MC bean.

Author:
Ales Justin

Optional Element Summary
 org.jboss.beans.info.spi.BeanAccessMode accessMode
          Get the access mode
 String[] aliases
          Get the aliases.
 boolean autowireCandidate
          Is this bean is a candidate for getting injected via contextual matching or callback resolution.
 AutowireType autowireType
          Get the autowire type.
 ErrorHandlingMode errorHandlingMode
          Get error handling mode Note that this is only gonna be used after Describe state.
 boolean isAbstract
          Is abstract metadata.
 ControllerMode mode
          Get the mode Note that this is only gonna be used after Describe state.
 String name
          Get the name.
 String parent
          Get the parent.
 

name

public abstract String name
Get the name. This is only meant to be used before bean meta data is already installed in Controller.

Returns:
bean's name
Default:
""

aliases

public abstract String[] aliases
Get the aliases. This is only meant to be used before bean meta data is already installed in Controller.

Returns:
the aliases
Default:
{}

parent

public abstract String parent
Get the parent. This is only meant to be used before bean meta data is already installed in Controller.

Returns:
the parent
Default:
""

isAbstract

public abstract boolean isAbstract
Is abstract metadata. This is only meant to be used before bean meta data is already installed in Controller.

Returns:
is abstract
Default:
false

autowireType

public abstract AutowireType autowireType
Get the autowire type.

Returns:
the autowire type
Default:
org.jboss.beans.metadata.api.model.AutowireType.NONE

mode

public abstract ControllerMode mode
Get the mode Note that this is only gonna be used after Describe state.

Returns:
the mode
Default:
org.jboss.dependency.spi.ControllerMode.AUTOMATIC

errorHandlingMode

public abstract ErrorHandlingMode errorHandlingMode
Get error handling mode Note that this is only gonna be used after Describe state.

Returns:
the error handling mode
Default:
org.jboss.dependency.spi.ErrorHandlingMode.DISCARD

accessMode

public abstract org.jboss.beans.info.spi.BeanAccessMode accessMode
Get the access mode

Returns:
the access mode
Default:
org.jboss.beans.info.spi.BeanAccessMode.STANDARD

autowireCandidate

public abstract boolean autowireCandidate
Is this bean is a candidate for getting injected via contextual matching or callback resolution. This is only meant to be used before bean meta data is already installed in Controller.

Returns:
true (default) if used for autowiring
Default:
true


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