Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 // Copyright 2005 The Apache Software Foundation
 //
 // 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 org.apache.tapestry.engine.state;

Author(s):
Howard M. Lewis Ship
Since:
4.0
public interface ApplicationStateManager
{
    
Checks to see if the named object exists.

Parameters:
objectName the name of the application state object
Returns:
True if the object with the specified name exists, false otherwise.
Throws:
org.apache.hivemind.ApplicationRuntimeException If no such object is declared
    boolean exists(String objectName);

    
Gets the named application state object, creating it if necessary.

Parameters:
objectName the name of the application state object
Returns:
the object
Throws:
org.apache.hivemind.ApplicationRuntimeException if no such object is declared
    Object get(String objectName);
    
    
Stores a new state object, replacing the old one. The new object may be null.

Parameters:
objectName the name of the object to store
stateObject the new object, possibly null
Throws:
org.apache.hivemind.ApplicationRuntimeException if no such object is declared
    
    void store(String objectNameObject stateObject);

    
Asks each StateObjectManager to store each object obtained.
    void flush();
New to GrepCode? Check out our FAQ X