All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.robozonky.common.state.package-info Maven / Gradle / Ivy

/*
 * Copyright 2018 The RoboZonky Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/**
 * Provides means to persistently store information. Use
 * {@link com.github.robozonky.common.state.TenantState#of(SessionInfo)} as primary entry
 * point.
 * 

* This class uses two main concepts: * *

    *
  • A tenant is a single user of the application. All state is always specific to a tenant. A tenant is * represented by a {@link com.github.robozonky.api.SessionInfo} instance.
  • *
  • An instance is a {@link java.lang.Class} that is storing the state, as provided in * {@link com.github.robozonky.common.state.TenantState#in(java.lang.Class)}.
  • *
*

* At the moment, there is only one implementation of these concepts, one backed by a file. * ({@link com.github.robozonky.common.state.FileBackedStateStorage}, implementing the INI file format.) Every tenant * gets a single file, every instance then is a section in this file. Each such section is a fairly standard property * file. */ package com.github.robozonky.common.state; import com.github.robozonky.api.SessionInfo;





© 2015 - 2024 Weber Informatics LLC | Privacy Policy