@Override public void update(ForegroundModuleDescriptor moduleDescriptor, DataSource dataSource) throws Exception { this.moduleDescriptor = moduleDescriptor; ModuleUtils.setModuleSettings( this, StaticContentModule.class, moduleDescriptor.getMutableSettingHandler(), sectionInterface.getSystemInterface()); loadGlobalContentLinks(); checkInstanceHandlerRegistration(registerInInstanceHandler); }
@Override public List<SettingDescriptor> getSettings() { try { return ModuleUtils.getAnnotatedSettingDescriptors( this, Object.class, sectionInterface.getSystemInterface()); } catch (IllegalArgumentException e) { throw new RuntimeException(e); } catch (IllegalAccessException e) { throw new RuntimeException(e); } catch (InstantiationException e) { throw new RuntimeException(e); } catch (SQLException e) { throw new RuntimeException(e); } }