Versions Compared

Key

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

...

CODI provides default values via CDI beans. Therefore, it's possible to provide an alternative bean (via the std. @Specializes or @Alternative mechanism provided by CDI). Furthermore, there are add-ons e.g. for using the web.xml for the configuration (see External Resources).

Note
titlev0.9.2+

With CODI v0.9.2+ we made it easier for users to customize just single values. The default implementations are already available in the API modules (instead of the interfaces). So you have to use extends instead of implements and only the customized values are required.

Example

...

Code Block
java
java
titleCustom config which overrides the default value
@Specializes
@ApplicationScoped
public class CustomConversationConfig extends ConversationConfig
{
    @Override
    public int getConversationTimeoutInMinutes()
    {
        return 45;
    }
}

CodiCoreConfig

...

  • isAdvancedQualifierRequiredForDependencyInjection

...