org.directwebremoting.datasync.StoreProviderFactory Maven / Gradle / Ivy
package org.directwebremoting.datasync;
import javax.servlet.http.HttpSession;
import org.directwebremoting.ScriptSession;
/**
* The PerXStoreProviders (like {@link PerHttpSessionStoreProvider} and
* {@link PerScriptSessionStoreProvider}) need a way to create
* {@link StoreProvider}s for a given Y (in the above example Y is either
* {@link HttpSession} or {@link ScriptSession}).
* @author Joe Walker [joe at getahead dot ltd dot uk]
*/
public interface StoreProviderFactory
{
/**
* Create a new StoreProvider for a given Y.
* For container classes like HttpSession etc, this method does NOT need
* to store the created object. That is done by the PerXStoreProvider
* implementation.
* @param y ...
* @return ...
*/
StoreProvider create(Y y);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy