Search in sources :

Example 1 with EhCacheAssembler

use of org.qi4j.cache.ehcache.assembly.EhCacheAssembler in project qi4j-sdk by Qi4j.

the class EhCacheTest method assemble.

@Override
public // START SNIPPET: assembly
void assemble(ModuleAssembly module) throws AssemblyException {
    // END SNIPPET: assembly
    ModuleAssembly confModule = module.layer().module("confModule");
    new EntityTestAssembler().visibleIn(Visibility.layer).assemble(confModule);
    // START SNIPPET: assembly
    new EhCacheAssembler().withConfig(confModule, Visibility.layer).assemble(module);
}
Also used : ModuleAssembly(org.qi4j.bootstrap.ModuleAssembly) EntityTestAssembler(org.qi4j.test.EntityTestAssembler) EhCacheAssembler(org.qi4j.cache.ehcache.assembly.EhCacheAssembler)

Aggregations

ModuleAssembly (org.qi4j.bootstrap.ModuleAssembly)1 EhCacheAssembler (org.qi4j.cache.ehcache.assembly.EhCacheAssembler)1 EntityTestAssembler (org.qi4j.test.EntityTestAssembler)1