All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.axis2.deployment.ServiceBuilderExtension Maven / Gradle / Ivy

There is a newer version: 5.0.22
Show newest version
/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements. See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership. The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied. See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

package org.apache.axis2.deployment;

import java.util.Map;

import org.apache.axis2.context.ConfigurationContext;
import org.apache.axis2.deployment.repository.util.DeploymentFileData;
import org.apache.axis2.description.AxisService;

/**
 * 

* The interface ServiceBuilderExtension provides an extension point to * org.apache.axis2.deployment.Deployer interface. During the deployment, a * Deployer invoke all ServiceBuilderExtension instances associated with it and * receive a list of org.apache.axis2.description.AxisService generated by one * of above ServiceBuilderExtension instances. *

* *

* It is possible to register ServiceBuilderExtension for a * org.apache.axis2.deployment.Deployer through the axis2.xml configuration file * or one can can set ServiceBuilderExtension programtically. *

* *

* Example *

*

* *

 * {@code
 *           
 *              
 *              
 *               
 *       }
 * 
*

* * *
    *
  • * To use ServiceBuilderExtension a custom Deployer must be extended from org.apache.axis2.deployment.AbstractDeployer * class where org.apache.axis2.deployment.AbstractDeployer class register ServiceBuilderExtensions with underline Deployer * instance. *
  • *
  • * Within deploy() method it is expected to call org.apache.axis2.deployment.AbstractDeployer#executeServiceBuilderExtensions * method to receive list of AxisService instances generated by ServiceBuilderExtensions. *
  • *
  • * For a given deploymentFile, if a ServiceBuilderExtension could create a AxisService then * stop execution of other ServiceBuilderExtensions registered and return the AxisService immediately * to the base Deployer for the further processing. *
  • *
* * @since 1.7.0 */ public interface ServiceBuilderExtension { /** * Initialize ServiceBuilderExtension instance. This method should be called * when Initializing the base Deployer. * * @param configurationContext * the configuration context */ public void init(ConfigurationContext configurationContext); /** * Builds the AxisService. * * @param deploymentFileData * the deployment file data * * @return the map of AxisService instances. * @throws DeploymentException * the deployment exception */ public Map buildAxisServices(DeploymentFileData deploymentFileData) throws DeploymentException; public void setDirectory(String directory); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy