001    package biz.hammurapi.registry;
002    
003    import java.util.Collection;
004    
005    /**
006     * Registry of Java components/services.
007     * @author Pavel
008     */
009    public interface Registry {
010    
011            /**
012             * Opens a browser to select a single component of 
013             * given target class
014             * @param targetClasses returned object shall be an instance of one
015             * of target classes.
016             * @return
017             */
018            Object select(Class<?> ... targetClasses);
019            
020            /**
021             * Opens a browser to select multiple components of 
022             * given target class.
023             * @param targetClasses returned object shall be an instance of one
024             * of target classes.
025             * @return
026             */
027            Collection<?> multiSelect(Class<?> ... targetClasses);
028    }