// class
continue;
}
- return uiClass.cast(provider.instantiateUI(this, uiClass,
+ return uiClass.cast(provider.createInstance(this, uiClass,
request));
}
}
public abstract class AbstractUIProvider implements UIProvider {
@Override
- public UI instantiateUI(Application application, Class<? extends UI> type,
+ public UI createInstance(Application application, Class<? extends UI> type,
WrappedRequest request) {
try {
return type.newInstance();
public Class<? extends UI> getUIClass(Application application,
WrappedRequest request);
- public UI instantiateUI(Application application, Class<? extends UI> type,
+ public UI createInstance(Application application, Class<? extends UI> type,
WrappedRequest request);
}
reportCurrentStatus("app init");
addUIProvider(new UIProvider() {
@Override
- public UI instantiateUI(Application application,
+ public UI createInstance(Application application,
Class<? extends UI> type, WrappedRequest request) {
return mainWindow;
}
addUIProvider(new UIProvider() {
@Override
- public UI instantiateUI(Application application,
+ public UI createInstance(Application application,
Class<? extends UI> type, WrappedRequest request) {
return getUI(request);
}
// Must override as default implementation isn't allowed to
// instantiate our non-public classes
@Override
- public UI instantiateUI(Application application,
+ public UI createInstance(Application application,
Class<? extends UI> type, WrappedRequest request) {
try {
return type.newInstance();