14.3.3.2. Specify the Default Configuration
Specify a method annotated as a producer for the JBoss Data Grid configuration object to replace the default Infinispan Configuration. The following sample configuration illustrates this step:
Note
CDI adds a
@Default qualifier if no other qualifiers are provided.
If a
@Produces annotation is placed in a method that returns a Configuration instance, the method is invoked when a Configuration object is required.
In the provided example configuration, the method creates a new Configuration object which is subsequently configured and returned.