javax.webbeans.manager
Class Bean<T>

java.lang.Object
  extended by javax.webbeans.manager.Bean<T>
Type Parameters:
T - an API type of the Web 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 Web Bean manager and a Web Bean. This interface should not be called directly by the application.

Author:
Gavin King

Constructor Summary
protected Bean(Manager manager)
           
 
Method Summary
abstract  T create()
           
abstract  void destroy(T instance)
           
abstract  java.util.Set<java.lang.annotation.Annotation> getBindingTypes()
           
abstract  java.lang.Class<? extends java.lang.annotation.Annotation> getDeploymentType()
           
protected  Manager getManager()
           
abstract  java.lang.String getName()
           
abstract  java.lang.Class<? extends java.lang.annotation.Annotation> getScopeType()
           
abstract  java.util.Set<java.lang.Class<?>> getTypes()
           
abstract  boolean isNullable()
           
abstract  boolean isSerializable()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Bean

protected Bean(Manager manager)
Method Detail

getManager

protected Manager getManager()

create

public abstract T create()
Specified by:
create in interface Contextual<T>

destroy

public abstract void destroy(T instance)
Specified by:
destroy in interface Contextual<T>

getTypes

public abstract java.util.Set<java.lang.Class<?>> getTypes()

getBindingTypes

public abstract java.util.Set<java.lang.annotation.Annotation> getBindingTypes()

getScopeType

public abstract java.lang.Class<? extends java.lang.annotation.Annotation> getScopeType()

getDeploymentType

public abstract java.lang.Class<? extends java.lang.annotation.Annotation> getDeploymentType()

getName

public abstract java.lang.String getName()

isSerializable

public abstract boolean isSerializable()

isNullable

public abstract boolean isNullable()


Copyright © 2008. All Rights Reserved.