Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
Issue 1889 - CacheCPS better docs
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Cobbett <77053+techcobweb@users.noreply.github.com>
  • Loading branch information
techcobweb committed Jul 24, 2024
1 parent 59f6a72 commit f9d11bd
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@
* Up-front the implementation reads the entire contents from the CPS and caches it.
*
* Set and Delete of properties are deleted, and the cache state is maintained.
*
* The cache is turned on using the 'framework.cps.rest.cache.is.enabled' property.
* - true : The cacheing is turned on.
* - false : Calls pass directly through to the child CPS implementation.
* Default value: false.
*/
public class CacheCPS implements IConfigurationPropertyStore {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
/*
* Copyright contributors to the Galasa project
*
* SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.cps.rest.mocks;


import java.util.*;

import javax.validation.constraints.NotNull;
Expand All @@ -10,7 +14,11 @@
import dev.galasa.framework.spi.IConfigurationPropertyStore;


/** A */
/**
* A CPS implementation which holds a hashmap as the basis of it's property store.
*
* It sits in memory and leaves no debris, so is suitable for use with unit tests.
*/
public class MockCPS implements IConfigurationPropertyStore {

public MockCPS() {
Expand Down

0 comments on commit f9d11bd

Please sign in to comment.