integration-impl/src/main/java/se/idsec/signservice/integration/state/impl/DefaultSignatureStateProcessor.java
@PostConstruct
  public void afterPropertiesSet() throws Exception {
    AssertThat.isNotNull(this.configurationManager, "The 'configurationManager' property must be assigned");

    // If all policies are stateless, we don't need a cache ...
    //
    if (this.stateCache == null) {
      boolean cacheNeeded = false;
      for (String policy : this.configurationManager.getPolicies()) {
        if (!this.configurationManager.getConfiguration(policy).isStateless()) {
          cacheNeeded = true;
          break;
        }
      }
      if (cacheNeeded) {
        throw new IllegalArgumentException("The 'stateCache' property must be assigned");
      }
      else {
        this.stateCache = new InMemoryIntegrationServiceStateCache();
      }
    }
  }
/**
   * Ensures that all required properties have been assigned.
   * 
   * <p>
   * Note: If executing in a Spring Framework environment this method is automatically invoked after all properties have
   * been assigned. Otherwise it should be explicitly invoked.
   * </p>
   * 
   * @throws Exception
   *           if not all settings are correct
   */
Ensures that all required properties have been assigned.


Note: If executing in a Spring Framework environment this method is automatically invoked after all properties have
been assigned. Otherwise it should be explicitly invoked.

@throws Exception
if not all settings are correct
Ensures that all required properties have been assigned . Note : If executing in a Spring Framework environment this method is automatically invoked after all properties have been assigned . Otherwise it should be explicitly invoked . @throws Exception if not all settings are correct
@PostConstruct
  public void afterPropertiesSet() throws Exception {
    AssertThat.isNotNull(this.configurationManager, "The 'configurationManager' property must be assigned");
    if (this.stateCache == null) {
      boolean cacheNeeded = false;
      for (String policy : this.configurationManager.getPolicies()) {
        if (!this.configurationManager.getConfiguration(policy).isStateless()) {
          cacheNeeded = true;
          break;
        }
      }
      if (cacheNeeded) {
        throw new IllegalArgumentException("The 'stateCache' property must be assigned");
      }
      else {
        this.stateCache = new InMemoryIntegrationServiceStateCache();
      }
    }
  }
@ PostConstruct public void afterPropertiesSet ( ) throws Exception { AssertThat . isNotNull ( this . configurationManager , "The 'configurationManager' property must be assigned" ) ; if ( this . stateCache == null ) { boolean cacheNeeded = false ; for ( String policy : this . configurationManager . getPolicies ( ) ) { if ( ! this . configurationManager . getConfiguration ( policy ) . isStateless ( ) ) { cacheNeeded = true ; break ; } } if ( cacheNeeded ) { throw new IllegalArgumentException ( "The 'stateCache' property must be assigned" ) ; } else { this . stateCache = new InMemoryIntegrationServiceStateCache ( ) ; } } }
Ensures that all required properties have been assigned.
Ensures that all required properties have been assigned .
// If all policies are stateless, we don't need a cache ... //