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

org.appdapter.api.registry.Registry Maven / Gradle / Ivy

There is a newer version: 1.2.4
Show newest version
/*
 *  Copyright 2012 by The Appdapter Project (www.appdapter.org).
 * 
 *  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.appdapter.api.registry;

/**
 * A registry is able to register Object+Description pairs, and generate Finders
 * that can search through the registered pairs.   Semantics for deletion or 
 * replacement of object references is so far left to subtypes, as is the meaning
 * of "equal" objects or descriptions.
 * 
 * @author Stu B. 
 */
public interface Registry {
	
	/** Open questions:
	 * 
	 *	1) What is defined behavior if we register two objects for "same" description,
	 *		or two descriptions for "same" object?
	 *
	 */
	
	public void registerObject(Object o, Description d);
	
	/**
	 * @return a Finder that can search the Registry for objects of the given class OT.
	 */
	public  Finder getFinder(Class objClaz);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy