View Javadoc

1   package org.codehaus.xfire.loom;
2   
3   /***
4    * Component to deploy components in XFire using (optional) predefined configurations
5    *
6    * @author <a href="mailto:peter.royal@pobox.com">peter royal</a>
7    */
8   public interface ServiceDeployer
9   {
10      /***
11       * Deploy the specified object via XFire. The key points to a predefined configuration that this component may have.
12       * If the key is not recognized by this component, a template configuration will be used.
13       *
14       * @param key    Key of service to deploy. Required.
15       * @param object Object to deploy as service. Required.
16       */
17      void deploy( String key, Object object ) throws Exception;
18  
19      /***
20       * Undeploy the specified object as previously deployed with {@link #deploy(String, Object)}
21       *
22       * @param key Key of service to undeploy. Required.
23       */
24      void undeploy( String key );
25  }