/**
 * Copyright (C) 2016 Red Hat, Inc. and/or its affiliates.
 *
 * 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 org.jboss.errai.cdi.event.client;

import javax.enterprise.context.Dependent;
import javax.inject.Inject;

import org.jboss.errai.cdi.event.client.shared.QualifiedMemberEventProducer;
import org.jboss.errai.common.client.api.Caller;

/**
 *
 * @author Max Barkley <mbarkley@redhat.com>
 */
@Dependent
public class ProxyServerQualifierMemberEventProducer implements QualifiedMemberEventProducer {

  @Inject
  private Caller<QualifiedMemberEventProducer> caller;

  @Override
  public void fireEnumOne() {
    caller.call().fireEnumOne();
  }

  @Override
  public void fireEnumTwo() {
    caller.call().fireEnumTwo();
  }

  @Override
  public void fireEnumThree() {
    caller.call().fireEnumThree();
  }

  @Override
  public void fireInt0() {
    caller.call().fireInt0();
  }

  @Override
  public void fireInt100() {
    caller.call().fireInt100();
  }

  @Override
  public void fireIntNeg1() {
    caller.call().fireIntNeg1();
  }

  @Override
  public void fireEnumAndIntOne() {
    caller.call().fireEnumAndIntOne();
  }

  @Override
  public void fireNamedEvent() {
    caller.call().fireNamedEvent();
  }

  @Override
  public void fireMultiple1() {
    caller.call().fireMultiple1();
  }

  @Override
  public void fireMultiple2() {
    caller.call().fireMultiple2();
  }

  @Override
  public void fireMultiple3() {
    caller.call().fireMultiple3();
  }

  @Override
  public void fireMultipleNone() {
    caller.call().fireMultipleNone();
  }

  @Override
  public void fireClazzObject() {
    caller.call().fireClazzObject();
  }

  @Override
  public void fireClazzArray() {
    caller.call().fireClazzArray();
  }

}
