Package org.citrusframework.repository
Class BaseRepository
java.lang.Object
org.citrusframework.repository.BaseRepository
- All Implemented Interfaces:
org.citrusframework.common.InitializingPhase,org.citrusframework.common.Named
public abstract class BaseRepository
extends Object
implements org.citrusframework.common.Named, org.citrusframework.common.InitializingPhase
Base class for repositories providing common functionality for initializing and managing resources.
Implementations must provide the logic for loading and adding resources to the repository.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidaddRepository(org.citrusframework.spi.Resource resource) Gets the locations.getName()Gets the name.voidvoidsetLocations(List<String> locations) Sets the locations.void
-
Constructor Details
-
BaseRepository
-
-
Method Details
-
initialize
public void initialize()- Specified by:
initializein interfaceorg.citrusframework.common.InitializingPhase
-
addRepository
protected abstract void addRepository(org.citrusframework.spi.Resource resource) -
setName
- Specified by:
setNamein interfaceorg.citrusframework.common.Named
-
getName
Gets the name.- Returns:
- the name to get.
-
getLocations
Gets the locations.- Returns:
- the locations to get.
-
setLocations
Sets the locations.- Parameters:
locations- the locations to set
-