javax.inject.manager
Class Bean<T>

java.lang.Object
  extended by javax.inject.manager.Bean<T>
Type Parameters:
T - an API type of the bean
All Implemented Interfaces:
Contextual<T>
Direct Known Subclasses:
Decorator, Interceptor

public abstract class Bean<T>
extends java.lang.Object
implements Contextual<T>

The contract between the manager and a bean. This interface should not be called directly by the application.

Author:
Gavin King

Constructor Summary
protected Bean(Manager manager)
          Create an instance of a bean
 
Method Summary
abstract  java.util.Set<java.lang.annotation.Annotation> getBindings()
          The bindings of a bean
abstract  java.lang.Class<? extends java.lang.annotation.Annotation> getDeploymentType()
          The deployment type of a bean
abstract  java.util.Set<? extends InjectionPoint> getInjectionPoints()
          The injection points of a bean
protected  Manager getManager()
          Get the manager used to create this bean
abstract  java.lang.String getName()
          The name of a bean
abstract  java.lang.Class<? extends java.lang.annotation.Annotation> getScopeType()
          The scope of a bean
abstract  java.util.Set<java.lang.reflect.Type> getTypes()
          The client-visible types of a bean
abstract  boolean isNullable()
          The nullability of a bean
abstract  boolean isSerializable()
          The serializability of a bean
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.context.Contextual
create, destroy
 

Constructor Detail

Bean

protected Bean(Manager manager)
Create an instance of a bean

Parameters:
manager -
Method Detail

getManager

protected Manager getManager()
Get the manager used to create this bean

Returns:
an instance of the manager

getTypes

public abstract java.util.Set<java.lang.reflect.Type> getTypes()
The client-visible types of a bean

Returns:
the bean types

getBindings

public abstract java.util.Set<java.lang.annotation.Annotation> getBindings()
The bindings of a bean

Returns:
the bindings

getScopeType

public abstract java.lang.Class<? extends java.lang.annotation.Annotation> getScopeType()
The scope of a bean

Returns:
the scope

getDeploymentType

public abstract java.lang.Class<? extends java.lang.annotation.Annotation> getDeploymentType()
The deployment type of a bean

Returns:
the deployment type

getName

public abstract java.lang.String getName()
The name of a bean

Returns:
the name

isSerializable

public abstract boolean isSerializable()
The serializability of a bean

Returns:
true if the bean is serializable

isNullable

public abstract boolean isNullable()
The nullability of a bean

Returns:
true if the bean is nullable

getInjectionPoints

public abstract java.util.Set<? extends InjectionPoint> getInjectionPoints()
The injection points of a bean

Returns:
the injection points of a bean


Copyright © 2008-2009. All Rights Reserved.