Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note
titleAPI/Impl

Since the API of MyFaces CODI is separated, you can implement your custom implementation-module for an existing api-module. However, MyFaces CODI is a community project. So it's a good idea to donate improvements of any kind instead of permanently forking the implementation.

Core conversation SPI

The core of CODI provides a very basic and generic SPI for conversations:

  • WindowContextManager
  • BeanEntryFactory (and BeanEntry)

Custom implementations can be provided via the std. @Alternative mechanism provided by CDI.

WindowContextManager

A WindowContextManager is responsible for managing the current WindowContext. This interface is the base (and read-only) implementation for EditableWindowContextManager (which is provided by the JSF module). If you don't need further APIs of the WindowContextManager, you don't need #getCurrentWindowContext in your application. You can directly inject the current WindowContext via @Inject.

BeanEntryFactory and BeanEntry

A BeanEntryFactory is responsible for creating instances of BeanEntry. A BeanEntry is used internally for storing conversation scoped beans.