/******************************************************************************* * Copyright (c) 2012-2017 Codenvy, S.A. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Codenvy, S.A. - initial API and implementation *******************************************************************************/ package org.eclipse.che.dto.definitions; import org.eclipse.che.dto.shared.DTO; import org.eclipse.che.dto.shared.DelegateRule; import org.eclipse.che.dto.shared.DelegateTo; /** * @author andrew00x * @author Alexander Garagatyi */ @DTO public interface DtoWithDelegate extends TestInterface { String getFirstName(); void setFirstName(String firstName); DtoWithDelegate withFirstName(String firstName); String getLastName(); void setLastName(String lastName); DtoWithDelegate withLastName(String lastName); @DelegateTo(client = @DelegateRule(type = Util.class, method = "addPrefix"), server = @DelegateRule(type = Util.class, method = "addPrefix")) String nameWithPrefix(String prefix); // @Override // @DelegateTo(client = @DelegateRule(type = Util.class, method = "getFullName"), // server = @DelegateRule(type = Util.class, method = "getFullName")) // String getFullName(); }