org.apache.myfaces.extensions.cdi.core.impl.scope.conversation.spi
Interface BeanEntry<T>

All Superinterfaces:
Serializable

public interface BeanEntry<T>
extends Serializable

Stores a conversation scoped bean instance and it's configuration


Method Summary
 javax.enterprise.inject.spi.Bean<T> getBean()
          Bean of the current entry
 T getBeanInstance()
          Scoped instance which was created based on the Bean of the current entry.
 javax.enterprise.context.spi.CreationalContext<T> getCreationalContext()
          CreationalContext of the current entry
 boolean isAccessBeanEventEnabled()
          Flag which indicates if the AccessBeanEvent is enabled
 boolean isScopeBeanEventEnabled()
          Flag which indicates if the ScopeBeanEvent is enabled
 boolean isUnscopeBeanEventEnabled()
          Flag which indicates if the UnscopeBeanEvent is enabled
 T resetBeanInstance()
          Resets the bean instance to null
 

Method Detail

getBean

javax.enterprise.inject.spi.Bean<T> getBean()
Bean of the current entry

Returns:
current bean

getCreationalContext

javax.enterprise.context.spi.CreationalContext<T> getCreationalContext()
CreationalContext of the current entry

Returns:
creational-context of the bean

getBeanInstance

T getBeanInstance()
Scoped instance which was created based on the Bean of the current entry. If it hasn't been created, it will be created automatically.

Returns:
instance of the bean

resetBeanInstance

T resetBeanInstance()
Resets the bean instance to null

Returns:
the old instance

isScopeBeanEventEnabled

boolean isScopeBeanEventEnabled()
Flag which indicates if the ScopeBeanEvent is enabled

Returns:
true if the event is enabled, false otherwise

isAccessBeanEventEnabled

boolean isAccessBeanEventEnabled()
Flag which indicates if the AccessBeanEvent is enabled

Returns:
true if the event is enabled, false otherwise

isUnscopeBeanEventEnabled

boolean isUnscopeBeanEventEnabled()
Flag which indicates if the UnscopeBeanEvent is enabled

Returns:
true if the event is enabled, false otherwise


Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.