1 /* 2 * JBoss, Home of Professional Open Source 3 * Copyright 2005, JBoss Inc., and individual contributors as indicated 4 * by the @authors tag. See the copyright.txt in the distribution for a 5 * full listing of individual contributors. 6 * 7 * This is free software; you can redistribute it and/or modify it 8 * under the terms of the GNU Lesser General Public License as 9 * published by the Free Software Foundation; either version 2.1 of 10 * the License, or (at your option) any later version. 11 * 12 * This software is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 * Lesser General Public License for more details. 16 * 17 * You should have received a copy of the GNU Lesser General Public 18 * License along with this software; if not, write to the Free 19 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 20 * 02110-1301 USA, or see the FSF site: http://www.fsf.org. 21 */ 22 package org.jboss.kernel.spi.deployment; 23 24 import java.util.List; 25 26 import org.jboss.beans.metadata.spi.BeanMetaData; 27 import org.jboss.beans.metadata.spi.BeanMetaDataFactory; 28 import org.jboss.beans.metadata.spi.ClassLoaderMetaData; 29 import org.jboss.kernel.spi.dependency.KernelControllerContext; 30 import org.jboss.util.JBossInterface; 31 32 /** 33 * A kernel deployment. 34 * 35 * @author <a HREF="adrian@jboss.com">Adrian Brock</a> 36 * @version $Revision: 45764 $ 37 */ 38 public interface KernelDeployment extends JBossInterface 39 { 40 /** 41 * Get the name of the deployment 42 * 43 * @return the name 44 */ 45 String getName(); 46 47 /** 48 * Set the name of the deployment 49 * 50 * @param name the name 51 */ 52 void setName(String name); 53 54 /** 55 * Whether the deployment is installed 56 * 57 * @return true when installed 58 */ 59 boolean isInstalled(); 60 61 /** 62 * Set the intalled state 63 * 64 * @param installed true when installed 65 */ 66 void setInstalled(boolean installed); 67 68 /** 69 * Get the classloader for this deployment 70 * 71 * @return the classloader 72 */ 73 ClassLoaderMetaData getClassLoader(); 74 75 /** 76 * Get the beans in the deployment 77 * 78 * @return List<BeanMetaData> 79 */ 80 List<BeanMetaData> getBeans(); 81 82 /** 83 * Get the bean factories in the deployment 84 * 85 * @return List<BeanMetaDataFactory> 86 */ 87 List<BeanMetaDataFactory> getBeanFactories(); 88 89 /** 90 * Get the installed contexts 91 * 92 * @return the installed contexts 93 */ 94 List<KernelControllerContext> getInstalledContexts(); 95 96 /** 97 * Add an installed context 98 * 99 * @param context the context to add 100 */ 101 void addInstalledContext(KernelControllerContext context); 102 103 /** 104 * Remove an installed context 105 * 106 * @param context the context to add 107 */ 108 void removeInstalledContext(KernelControllerContext context); 109 } 110