com.gwtplatform.mvp.rebind.PresenterDefinitions Maven / Gradle / Ivy
/**
* Copyright 2011 ArcBees Inc.
*
* 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.gwtplatform.mvp.rebind;
import com.google.gwt.core.ext.typeinfo.JClassType;
import java.util.ArrayList;
import java.util.List;
/**
* This class will hold a reference to all type of presenters that can be found in an application to be able to
* retrieve them by type afterward.
*/
public class PresenterDefinitions {
private final List standardPresenters;
private final List codeSplitPresenters;
private final List codeSplitBundlePresenters;
public PresenterDefinitions() {
this.standardPresenters = new ArrayList();
this.codeSplitPresenters = new ArrayList();
this.codeSplitBundlePresenters = new ArrayList();
}
public List getStandardPresenters() {
return standardPresenters;
}
public List getCodeSplitPresenters() {
return codeSplitPresenters;
}
public List getCodeSplitBundlePresenters() {
return codeSplitBundlePresenters;
}
public void addStandardPresenter(JClassType presenter) {
standardPresenters.add(presenter);
}
public void addCodeSplitPresenter(JClassType presenter) {
codeSplitPresenters.add(presenter);
}
public void addCodeSplitBundlePresenter(JClassType presenter) {
codeSplitBundlePresenters.add(presenter);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy