1 /* 2 * Copyright (c) 2003 by The Jackass Team 3 * Licensed under the Open Software License version 2.0 4 */ 5 package ve.luz.ica.jackass.daemon; 6 7 /** 8 * This interface is to be used to provide simple Map-like functionality 9 * for associating application names with ApplicationInfo objects. 10 * @author Carlos Arévalo, Guido Urdaneta 11 * @see ApplicationInfo 12 */ 13 public interface ApplicationManager 14 { 15 /** 16 * Returns the information corresponding to the specified application. 17 * @param appName the application name 18 * @return the application information 19 */ 20 ApplicationInfo get(String appName); 21 22 /** 23 * Associates an application information with an application. 24 * @param appName the application name 25 * @param appInfo the application information 26 */ 27 void put(String appName, ApplicationInfo appInfo); 28 29 /** 30 * Removes the association of an application with an ApplicationInfo. 31 * @param appName the application name 32 */ 33 void remove(String appName); 34 }