repository.java

来自「这是linux下ssl vpn的实现程序」· Java 代码 · 共 42 行

JAVA
42
字号
package com.sslexplorer.boot;


/**
 * An abstract collection of {@link com.sslexplorer.boot.RepositoryStore} objects.
 * <p>
 * The concept of a <i>Repository</i> has been introduced to SSL-Explorer to
 * deal with the fact that at some point we will want to introduce load
 * balancing and fail-over facilities to the server.
 * <p>
 * Some key artifacts outside of the {@link com.sslexplorer.core.Database} 
 * implementations should also be shared amongst all instances that may
 * be running on a network of SSL-Explorer servers. These include 
 * {@link com.sslexplorer.boot.KeyStoreManager} instances, 
 * {@link com.sslexplorer.extensions.store.ExtensionStore} instances and 
 * others.
 * <p>
 * Each repository implementation should be able to handle multiple stores.
 * Each of these named stores then may contain multiple named <i>Entries</i>.
 * Each entry is simply of blob of data that may be written to and read from
 * using I/O streams. 
 * 
 * @author Lee David Painter <a href="mailto: lee@3sp.com">&lt;lee@3sp.com&gt;</a>
 * @version $Revision: 1.1 $
 * @see com.sslexplorer.boot.RepositoryFactory
 * @see com.sslexplorer.boot.LocalRepository
 * @see com.sslexplorer.boot.RepositoryStore
 */
public interface Repository {
	
    /**
     * Get a store instance given its name. If the store does not exists then the
     * implementation should create it. The same instance should be returned
     * for every subsequent call.
     *  
     * @param storeName store name
     * @return store instance
     */
	public RepositoryStore getStore(String storeName);
	
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?