コード例 #1
0
  @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);
  }
コード例 #2
0
  @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);
    }
  }