/** * Saves its state to the configuration. this method must be called within a transaction * to the configured engine instance. * * @param engine the engine configuration being persisted */ public void save(Engine engine) throws TransactionFailure, PropertyVetoException { engine.setSniffer(getContainerInfo().getSniffer().getModuleType()); if (appConfig != null) { engine.setApplicationConfig(appConfig); } }
/** * Saves its state to the configuration. this method must be called within a transaction * to the configured engine instance. * * @param engine the engine configuration being persisted */ public void save(Engine engine) throws TransactionFailure, PropertyVetoException { engine.setSniffer(getContainerInfo().getSniffer().getModuleType()); if (appConfig != null) { engine.setApplicationConfig(appConfig); } }
singleModule.setName(app.getName()); Engine webe = singleModule.createChild(Engine.class); webe.setSniffer("web"); Engine sece = singleModule.createChild(Engine.class); sece.setSniffer("security"); singleModule.getEngines().add(webe); singleModule.getEngines().add(sece);