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

org.fuzzydb.util.context.ApplicationContext Maven / Gradle / Ivy

Go to download

Contains classes not specific to fuzzydb implementation which could be used in any implementation of fuzzy matching, or as general utility classes such as those in the geo package.

The newest version!
/******************************************************************************
 * Copyright (c) 2005-2008 Whirlwind Match Limited. All rights reserved.
 *
 * This is open source software; you can use, redistribute and/or modify
 * it under the terms of the Open Software Licence v 3.0 as published by the 
 * Open Source Initiative.
 *
 * You should have received a copy of the Open Software Licence along with this
 * application. if not, contact the Open Source Initiative (www.opensource.org)
 *****************************************************************************/
package org.fuzzydb.util.context;


/**
 * Interface for a bean that contains all application data that we want to 
 * be able to share between different sessions of a given application instance.
 * 
 * Implementations may be dumb Maps, or actually access some data available in the 
 * context, such as for Axis, we can use the MessageContext.getCurrentContext() to 
 * find our session and application information.
 * 
 * @author Neale Upstone
 */
public interface ApplicationContext {

    /**
     * Get named object
     * @param name
     * @return object, or null
     */
    public Object get(String name);


    /**
     * Set object for a given name
     * @param name
     * @param objInstance
     */
    public void set(String name, Object objInstance);
    
    /**
     * Invalidates the current Application Context Data
     */
    public void invalidate();
    
   }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy