com.google.api.ads.common.lib.soap.SoapClientHandlerModule Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of common-axis2 Show documentation
Show all versions of common-axis2 Show documentation
Adds support for the Axis2 framework to the Java Client Libraries. Users are
not intended to list this as a dependency on its own. Instead, there are
product-and-framework specific libraries such as "dfp-axis2" and
"adwords-axis2" that already have this listed as a dependency.
The newest version!
// Copyright 2011, Google Inc. All Rights Reserved.
//
// Licensed 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 com.google.api.ads.common.lib.soap;
import com.google.inject.AbstractModule;
import com.google.inject.TypeLiteral;
import org.apache.axiom.om.OMAbstractFactory;
import org.apache.axiom.om.OMFactory;
/**
* Module for SOAP client handler.
*
* @author api.arogal (Adam Rogal)
*/
public class SoapClientHandlerModule extends AbstractModule {
@SuppressWarnings("unchecked") // Axis2Handler is a valid subtype.
@Override
protected void configure() {
bind(new TypeLiteral>() {})
.to((TypeLiteral extends SoapClientHandlerInterface © 2015 - 2025 Weber Informatics LLC | Privacy Policy