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.varia.deployment; 23 24 /** 25 * MBean interface. 26 * @see org.jboss.varia.deployment.convertor.Convertor 27 */ 28 public interface FoeDeployerMBean extends org.jboss.deployment.SubDeployerMBean { 29 30 //default object name 31 public static final javax.management.ObjectName OBJECT_NAME = org.jboss.mx.util.ObjectNameFactory.create("jboss.system:service=ServiceDeployer"); 32 33 /** 34 * Returns true if the there is a converter available to convert the deployment unit. 35 */ 36 boolean accepts(org.jboss.deployment.DeploymentInfo di) ; 37 38 /** 39 * At the init phase the deployment unit and its subdeployment units are unpacked. 40 */ 41 void init(org.jboss.deployment.DeploymentInfo di) throws org.jboss.deployment.DeploymentException; 42 43 /** 44 * At the create phase, the conversion and packing is done. 45 */ 46 void create(org.jboss.deployment.DeploymentInfo di) throws org.jboss.deployment.DeploymentException; 47 48 /** 49 * This method stops this deployment because it is not of any use anymore (conversion is done) 50 */ 51 void start(org.jboss.deployment.DeploymentInfo di) throws org.jboss.deployment.DeploymentException; 52 53 void stop(org.jboss.deployment.DeploymentInfo di) ; 54 55 void destroy(org.jboss.deployment.DeploymentInfo di) ; 56 57 /** 58 * Add a new conveter to the list. If the same converter is added, this new one won't be added, meaning everything stays the same. This method is normally called by a Converter to be called by this deployer to convert. 59 * @param converter New Converter to be added 60 */ 61 void addConvertor(org.jboss.varia.deployment.convertor.Convertor converter) ; 62 63 /** 64 * Removes a conveter from the list of converters. If the converter does not exist nothing happens. This method is normally called by a Converter to be removed from the list if not serving anymore. 65 * @param converter Conveter to be removed from the list 66 */ 67 void removeConvertor(org.jboss.varia.deployment.convertor.Convertor converter) ; 68 69 } 70