org.openbp.config.modelmgr.ClassPathAndFileSystemModelMgrConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openbp-server Show documentation
Show all versions of openbp-server Show documentation
The OpenBP process engine (main module)
package org.openbp.config.modelmgr;
import java.util.ArrayList;
import org.openbp.core.model.modelmgr.ModelMgr;
import org.openbp.core.model.modelmgr.MultiplexModelMgr;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/**
* Spring configuration providing file system-based and classpath-based model storage.
* This is the default if you access your models from directories (e. g. your own models) or the classpath (e. g. the System model).
*/
@Configuration
public class ClassPathAndFileSystemModelMgrConfig
{
@Bean
public ModelMgr modelMgr()
{
MultiplexModelMgr mm = new MultiplexModelMgr();
ArrayList l = new ArrayList(2);
l.add(new ClassPathModelMgrConfig().modelMgr());
l.add(new FileSystemModelMgrConfig().modelMgr());
mm.setManagers(l);
return mm;
}
}