Top Description Fields Constructors Methods
com.sun.faces.cdi

pack-priv Class CdiBehavior

extends Object
implements Behavior, StateHolder
Class Inheritance
All Implemented Interfaces
javax.faces.component.StateHolder, javax.faces.component.behavior.Behavior
Imports
javax.faces.component.StateHolder, javax.faces.component.behavior.Behavior, javax.faces.context.FacesContext, javax.faces.event.BehaviorEvent

A delegate to the CDI managed behavior.

Field Summary

Modifier and TypeField and Description
private String
behaviorId

Stores the behavior id.

private transient Behavior
delegate

Stores the transient delegate.

Constructor Summary

AccessConstructor and Description
public
CdiBehavior(String
the behavior id.
behaviorId
,
Behavior
the delegate.
delegate
)

Constructor.

Method Summary

Modifier and TypeMethod and Description
public void
broadcast(BehaviorEvent
the event.
event
)

Implements javax.faces.component.behavior.Behavior.broadcast.

Broadcast the event.
private Behavior

Returns:

the delegate.
getDelegate
(FacesContext
the Faces context.
facesContext
)

Get the delegate.

public boolean

Returns:

false.
isTransient
()

Implements javax.faces.component.StateHolder.isTransient.

Are we transient?
public void
restoreState(FacesContext
the Faces context.
facesContext
,
Object
the state.
state
)

Implements javax.faces.component.StateHolder.restoreState.

Restore the state.
public Object

Returns:

the state.
saveState
(FacesContext
the Faces context.
facesContext
)

Implements javax.faces.component.StateHolder.saveState.

Save the state.
public void
setTransient(boolean
the transient value.
transientValue
)

Implements javax.faces.component.StateHolder.setTransient.

Set the transient flag.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

behaviorIdback to summary
private String behaviorId

Stores the behavior id.

delegateback to summary
private transient Behavior delegate

Stores the transient delegate.

Constructor Detail

CdiBehaviorback to summary
public CdiBehavior(String behaviorId, Behavior delegate)

Constructor.

Parameters
behaviorId:String

the behavior id.

delegate:Behavior

the delegate.

Method Detail

broadcastback to summary
public void broadcast(BehaviorEvent event)

Implements javax.faces.component.behavior.Behavior.broadcast.

Broadcast the event.

Parameters
event:BehaviorEvent

the event.

Annotations
@Override
getDelegateback to summary
private Behavior getDelegate(FacesContext facesContext)

Get the delegate.

Parameters
facesContext:FacesContext

the Faces context.

Returns:Behavior

the delegate.

isTransientback to summary
public boolean isTransient()

Implements javax.faces.component.StateHolder.isTransient.

Are we transient?

Returns:boolean

false.

Annotations
@Override
restoreStateback to summary
public void restoreState(FacesContext facesContext, Object state)

Implements javax.faces.component.StateHolder.restoreState.

Restore the state.

Parameters
facesContext:FacesContext

the Faces context.

state:Object

the state.

Annotations
@Override
saveStateback to summary
public Object saveState(FacesContext facesContext)

Implements javax.faces.component.StateHolder.saveState.

Save the state.

Parameters
facesContext:FacesContext

the Faces context.

Returns:Object

the state.

Annotations
@Override
setTransientback to summary
public void setTransient(boolean transientValue)

Implements javax.faces.component.StateHolder.setTransient.

Set the transient flag.

Since our proxy is required to be non-transient we ignore any calls here.

Parameters
transientValue:boolean

the transient value.

Annotations
@Override