/*
* Copyright 2008 - 2009 Lars Heuer (heuer[at]semagia.com). All rights reserved.
*
* 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.
*/
package com.semagia.atomico.server;
import com.semagia.atomico.server.storage.IModifiableStorage;
import com.semagia.atomico.server.storage.IStorage;
/**
* Represents the server-side of Atomico and provides access to the environment.
* <p>
* Implementations of this interface are meant to be thread-safe.
* </p>
*
* @author Lars Heuer (heuer[at]semagia.com) <a href="http://www.semagia.com/">Semagia</a>
* @version $Rev: 128 $ - $Date: 2010-11-07 04:51:07 -0800 (Sun, 07 Nov 2010) $
*/
public interface IServerApplication {
/**
* Returns the storage.
*
* @return The storage, never <tt>null</tt>.
*/
public IStorage getStorage();
/**
* Returns an {@link IModifiableStorage} if {@link #getStorage()} is
* modifiable.
*
* @return A {@link IModifiableStorage} if the storage is modifiable,
* otherwise <tt>null</tt>.
*/
@Deprecated
public IModifiableStorage getModifiableStorage();
/**
* Returns the configuration.
*
* @return The configuration.
*/
public IConfiguration getConfiguration();
}
|