javax.faces.flow
Annotation Type FlowScoped


@NormalScope
@Inherited
@Documented
@Target(value=TYPE)
@Retention(value=RUNTIME)
public @interface FlowScoped

FlowScoped is a CDI scope that causes the runtime to consider classes with this annotation to be in the scope of the specified Flow. The implementation must provide an implementation of javax.enterprise.inject.spi.Extension that implements the semantics such that beans with this annotation are created when the user enters into the specified Flow, and de-allocated when the user exits the specified Flow.

Since:
2.2

Required Element Summary
 String id
          

Must be equivalent to the Flow.getId() of a defined flow for this application.

 
Optional Element Summary
 String definingDocumentId
          

If not empty, declare the defining document id within which the Flow referenced by id() is unique.

 

Element Detail

id

public abstract String id

Must be equivalent to the Flow.getId() of a defined flow for this application.

Since:
2.2

definingDocumentId

public abstract String definingDocumentId

If not empty, declare the defining document id within which the Flow referenced by id() is unique. If empty the, the runtime assumes that all flow ids are unique within the scope of the application.

Since:
2.2
Default:
""


Copyright 2002-2010 Oracle America Inc, Inc. All Rights Reserved.