Skip to content

Instantly share code, notes, and snippets.

@lincolnthree
Created March 5, 2012 22:19
Show Gist options
  • Save lincolnthree/1981564 to your computer and use it in GitHub Desktop.
Save lincolnthree/1981564 to your computer and use it in GitHub Desktop.
package org.jboss.errai.ioc.client.api;
import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiTemplate;
import com.google.gwt.user.client.ui.Widget;
import com.ocpsoft.socialpm.gwt.client.local.App;
import com.ocpsoft.socialpm.gwt.client.local.AppPlaceHistoryMapper;
import com.ocpsoft.socialpm.gwt.client.local.ClientFactory;
import com.ocpsoft.socialpm.gwt.client.local.ClientFactoryImpl;
import com.ocpsoft.socialpm.gwt.client.local.EventsFactory;
import com.ocpsoft.socialpm.gwt.client.local.ServiceFactory;
import com.ocpsoft.socialpm.gwt.client.local.view.FixedLayoutView;
import com.ocpsoft.socialpm.gwt.client.local.view.HomeView;
import com.ocpsoft.socialpm.gwt.client.local.view.HomeViewImpl;
import com.ocpsoft.socialpm.gwt.client.local.view.LoginView;
import com.ocpsoft.socialpm.gwt.client.local.view.LoginViewImpl;
import com.ocpsoft.socialpm.gwt.client.local.view.ProfileView;
import com.ocpsoft.socialpm.gwt.client.local.view.ProfileViewImpl;
import com.ocpsoft.socialpm.gwt.client.local.view.ProjectView;
import com.ocpsoft.socialpm.gwt.client.local.view.ProjectViewImpl;
import com.ocpsoft.socialpm.gwt.client.local.view.component.SigninStatus;
import com.ocpsoft.socialpm.gwt.client.local.view.events.LoginEvent;
import com.ocpsoft.socialpm.gwt.client.shared.HelloMessage;
import com.ocpsoft.socialpm.gwt.client.shared.Response;
import com.ocpsoft.socialpm.gwt.client.shared.rpc.AuthenticationService;
import com.ocpsoft.socialpm.gwt.client.shared.rpc.ProfileService;
import com.ocpsoft.socialpm.gwt.client.shared.rpc.ProjectService;
import java.lang.annotation.Annotation;
import java.util.Set;
import javax.enterprise.event.Event;
import org.jboss.errai.bus.client.api.Message;
import org.jboss.errai.enterprise.client.cdi.AbstractCDIEventCallback;
import org.jboss.errai.enterprise.client.cdi.CDIProtocol;
import org.jboss.errai.enterprise.client.cdi.EventProvider;
import org.jboss.errai.enterprise.client.cdi.api.CDI;
import org.jboss.errai.ioc.client.ContextualProviderContext;
import org.jboss.errai.ioc.client.InterfaceInjectionContext;
import org.jboss.errai.ioc.client.api.builtin.CallerProvider;
import org.jboss.errai.ioc.client.api.builtin.IOCBeanManagerProvider;
import org.jboss.errai.ioc.client.api.builtin.MessageBusProvider;
import org.jboss.errai.ioc.client.api.builtin.RequestDispatcherProvider;
import org.jboss.errai.ioc.client.api.builtin.RootPanelProvider;
import org.jboss.errai.ioc.client.container.CreationalCallback;
import org.jboss.errai.ioc.client.container.InitializationCallback;
import org.jboss.errai.uibinder.client.UiBinderProvider;
public class BootstrapperImpl implements Bootstrapper {
@UiTemplate(value = "com.ocpsoft.socialpm.gwt.client.local.view.component.SigninStatus.ui.xml") @PackageTarget(value = "com.ocpsoft.socialpm.gwt.client.local.view.component") public static interface SigninStatusUiBinder extends UiBinder<Widget, SigninStatus> {
}
@UiTemplate(value = "com.ocpsoft.socialpm.gwt.client.local.view.FixedLayoutView.ui.xml") @PackageTarget(value = "com.ocpsoft.socialpm.gwt.client.local.view") public static interface FixedLayoutViewUiBinder extends UiBinder<Widget, FixedLayoutView> {
}
private native static void com_ocpsoft_socialpm_gwt_client_local_view_component_SigninStatus_binder(SigninStatus instance, UiBinder<Widget, SigninStatus> value) /*-{
instance.@com.ocpsoft.socialpm.gwt.client.local.view.component.SigninStatus::binder = value;
}-*/;
private native static UiBinder<Widget, SigninStatus> com_ocpsoft_socialpm_gwt_client_local_view_component_SigninStatus_binder(SigninStatus instance) /*-{
return instance.@com.ocpsoft.socialpm.gwt.client.local.view.component.SigninStatus::binder;
}-*/;
private native static void org_jboss_errai_enterprise_client_cdi_EventProvider_context(EventProvider instance, ContextualProviderContext value) /*-{
[email protected]::context = value;
}-*/;
private native static ContextualProviderContext org_jboss_errai_enterprise_client_cdi_EventProvider_context(EventProvider instance) /*-{
return [email protected]::context;
}-*/;
private native static void com_ocpsoft_socialpm_gwt_client_local_EventsFactory_loggedInEvent(EventsFactory instance, Event<LoginEvent> value) /*-{
[email protected]::loggedInEvent = value;
}-*/;
private native static Event<LoginEvent> com_ocpsoft_socialpm_gwt_client_local_EventsFactory_loggedInEvent(EventsFactory instance) /*-{
return [email protected]::loggedInEvent;
}-*/;
private native static void com_ocpsoft_socialpm_gwt_client_local_EventsFactory_messageEvent(EventsFactory instance, Event<HelloMessage> value) /*-{
[email protected]::messageEvent = value;
}-*/;
private native static Event<HelloMessage> com_ocpsoft_socialpm_gwt_client_local_EventsFactory_messageEvent(EventsFactory instance) /*-{
return [email protected]::messageEvent;
}-*/;
private native static void com_ocpsoft_socialpm_gwt_client_local_view_FixedLayoutView_binder(FixedLayoutView instance, UiBinder<Widget, FixedLayoutView> value) /*-{
instance.@com.ocpsoft.socialpm.gwt.client.local.view.FixedLayoutView::binder = value;
}-*/;
private native static UiBinder<Widget, FixedLayoutView> com_ocpsoft_socialpm_gwt_client_local_view_FixedLayoutView_binder(FixedLayoutView instance) /*-{
return instance.@com.ocpsoft.socialpm.gwt.client.local.view.FixedLayoutView::binder;
}-*/;
private native static void com_ocpsoft_socialpm_gwt_client_local_view_FixedLayoutView_signinStatus(FixedLayoutView instance, SigninStatus value) /*-{
instance.@com.ocpsoft.socialpm.gwt.client.local.view.FixedLayoutView::signinStatus = value;
}-*/;
private native static SigninStatus com_ocpsoft_socialpm_gwt_client_local_view_FixedLayoutView_signinStatus(FixedLayoutView instance) /*-{
return instance.@com.ocpsoft.socialpm.gwt.client.local.view.FixedLayoutView::signinStatus;
}-*/;
private native static void com_ocpsoft_socialpm_gwt_client_local_ServiceFactory_authService(ServiceFactory instance, Caller<AuthenticationService> value) /*-{
[email protected]::authService = value;
}-*/;
private native static Caller<AuthenticationService> com_ocpsoft_socialpm_gwt_client_local_ServiceFactory_authService(ServiceFactory instance) /*-{
return [email protected]::authService;
}-*/;
private native static void com_ocpsoft_socialpm_gwt_client_local_ServiceFactory_profileService(ServiceFactory instance, Caller<ProfileService> value) /*-{
[email protected]::profileService = value;
}-*/;
private native static Caller<ProfileService> com_ocpsoft_socialpm_gwt_client_local_ServiceFactory_profileService(ServiceFactory instance) /*-{
return [email protected]::profileService;
}-*/;
private native static void com_ocpsoft_socialpm_gwt_client_local_ServiceFactory_projectService(ServiceFactory instance, Caller<ProjectService> value) /*-{
[email protected]::projectService = value;
}-*/;
private native static Caller<ProjectService> com_ocpsoft_socialpm_gwt_client_local_ServiceFactory_projectService(ServiceFactory instance) /*-{
return [email protected]::projectService;
}-*/;
private native static void com_ocpsoft_socialpm_gwt_client_local_view_LoginViewImpl_serviceFactory(LoginViewImpl instance, ServiceFactory value) /*-{
instance.@com.ocpsoft.socialpm.gwt.client.local.view.LoginViewImpl::serviceFactory = value;
}-*/;
private native static ServiceFactory com_ocpsoft_socialpm_gwt_client_local_view_LoginViewImpl_serviceFactory(LoginViewImpl instance) /*-{
return instance.@com.ocpsoft.socialpm.gwt.client.local.view.LoginViewImpl::serviceFactory;
}-*/;
private native static void com_ocpsoft_socialpm_gwt_client_local_view_LoginViewImpl_eventFactory(LoginViewImpl instance, EventsFactory value) /*-{
instance.@com.ocpsoft.socialpm.gwt.client.local.view.LoginViewImpl::eventFactory = value;
}-*/;
private native static EventsFactory com_ocpsoft_socialpm_gwt_client_local_view_LoginViewImpl_eventFactory(LoginViewImpl instance) /*-{
return instance.@com.ocpsoft.socialpm.gwt.client.local.view.LoginViewImpl::eventFactory;
}-*/;
private native static void com_ocpsoft_socialpm_gwt_client_local_ClientFactoryImpl_eventFactory(ClientFactoryImpl instance, EventsFactory value) /*-{
instance.@com.ocpsoft.socialpm.gwt.client.local.ClientFactoryImpl::eventFactory = value;
}-*/;
private native static EventsFactory com_ocpsoft_socialpm_gwt_client_local_ClientFactoryImpl_eventFactory(ClientFactoryImpl instance) /*-{
return instance.@com.ocpsoft.socialpm.gwt.client.local.ClientFactoryImpl::eventFactory;
}-*/;
private native static void com_ocpsoft_socialpm_gwt_client_local_ClientFactoryImpl_serviceFactory(ClientFactoryImpl instance, ServiceFactory value) /*-{
instance.@com.ocpsoft.socialpm.gwt.client.local.ClientFactoryImpl::serviceFactory = value;
}-*/;
private native static ServiceFactory com_ocpsoft_socialpm_gwt_client_local_ClientFactoryImpl_serviceFactory(ClientFactoryImpl instance) /*-{
return instance.@com.ocpsoft.socialpm.gwt.client.local.ClientFactoryImpl::serviceFactory;
}-*/;
private native static void com_ocpsoft_socialpm_gwt_client_local_ClientFactoryImpl_homeView(ClientFactoryImpl instance, HomeView value) /*-{
instance.@com.ocpsoft.socialpm.gwt.client.local.ClientFactoryImpl::homeView = value;
}-*/;
private native static HomeView com_ocpsoft_socialpm_gwt_client_local_ClientFactoryImpl_homeView(ClientFactoryImpl instance) /*-{
return instance.@com.ocpsoft.socialpm.gwt.client.local.ClientFactoryImpl::homeView;
}-*/;
private native static void com_ocpsoft_socialpm_gwt_client_local_ClientFactoryImpl_loginView(ClientFactoryImpl instance, LoginView value) /*-{
instance.@com.ocpsoft.socialpm.gwt.client.local.ClientFactoryImpl::loginView = value;
}-*/;
private native static LoginView com_ocpsoft_socialpm_gwt_client_local_ClientFactoryImpl_loginView(ClientFactoryImpl instance) /*-{
return instance.@com.ocpsoft.socialpm.gwt.client.local.ClientFactoryImpl::loginView;
}-*/;
private native static void com_ocpsoft_socialpm_gwt_client_local_ClientFactoryImpl_profileView(ClientFactoryImpl instance, ProfileView value) /*-{
instance.@com.ocpsoft.socialpm.gwt.client.local.ClientFactoryImpl::profileView = value;
}-*/;
private native static ProfileView com_ocpsoft_socialpm_gwt_client_local_ClientFactoryImpl_profileView(ClientFactoryImpl instance) /*-{
return instance.@com.ocpsoft.socialpm.gwt.client.local.ClientFactoryImpl::profileView;
}-*/;
private native static void com_ocpsoft_socialpm_gwt_client_local_ClientFactoryImpl_projectView(ClientFactoryImpl instance, ProjectView value) /*-{
instance.@com.ocpsoft.socialpm.gwt.client.local.ClientFactoryImpl::projectView = value;
}-*/;
private native static ProjectView com_ocpsoft_socialpm_gwt_client_local_ClientFactoryImpl_projectView(ClientFactoryImpl instance) /*-{
return instance.@com.ocpsoft.socialpm.gwt.client.local.ClientFactoryImpl::projectView;
}-*/;
private native static void com_ocpsoft_socialpm_gwt_client_local_App_clientFactory(App instance, ClientFactory value) /*-{
[email protected]::clientFactory = value;
}-*/;
private native static ClientFactory com_ocpsoft_socialpm_gwt_client_local_App_clientFactory(App instance) /*-{
return [email protected]::clientFactory;
}-*/;
private native static void com_ocpsoft_socialpm_gwt_client_local_App_historyMapper(App instance, AppPlaceHistoryMapper value) /*-{
[email protected]::historyMapper = value;
}-*/;
private native static AppPlaceHistoryMapper com_ocpsoft_socialpm_gwt_client_local_App_historyMapper(App instance) /*-{
return [email protected]::historyMapper;
}-*/;
public InterfaceInjectionContext bootstrapContainer() {
final InterfaceInjectionContext ctx = new InterfaceInjectionContext();
UiBinder uiBinderInst_com_ocpsoft_socialpm_gwt_client_local_view_component_SigninStatus = GWT.create(SigninStatusUiBinder.class);
UiBinderProvider.registerBinder(SigninStatus.class, uiBinderInst_com_ocpsoft_socialpm_gwt_client_local_view_component_SigninStatus);
final CreationalCallback<UiBinderProvider> inj1349 = new CreationalCallback<UiBinderProvider>() {
public UiBinderProvider getInstance() {
final UiBinderProvider inj1323 = new UiBinderProvider();
return inj1323;
}
};
final CreationalCallback<MessageBusProvider> inj1350 = new CreationalCallback<MessageBusProvider>() {
public MessageBusProvider getInstance() {
final MessageBusProvider inj1340 = new MessageBusProvider();
return inj1340;
}
};
final MessageBusProvider inj1340 = inj1350.getInstance();
final InitializationCallback<SigninStatus> init_inj1348 = new InitializationCallback<SigninStatus>() {
public void init(SigninStatus obj) {
obj.postConstruct();
}
};
final CreationalCallback<SigninStatus> inj1351 = new CreationalCallback<SigninStatus>() {
public SigninStatus getInstance() {
final SigninStatus inj1348 = new SigninStatus();
com_ocpsoft_socialpm_gwt_client_local_view_component_SigninStatus_binder(inj1348, inj1349.getInstance().provide(new Class[] { Widget.class, SigninStatus.class }, null));
inj1340.get().subscribe("cdi.event:com.ocpsoft.socialpm.gwt.client.local.view.events.LoginEvent", new AbstractCDIEventCallback() {
public void callback(Message message) {
Set<String> msgQualifiers = message.get(Set.class, CDIProtocol.Qualifiers);
if (qualifiers.equals(msgQualifiers) || ((msgQualifiers == null) && qualifiers.isEmpty())) {
inj1348.handleLogin(message.get(LoginEvent.class, CDIProtocol.BeanReference));
}
}
});
return inj1348;
}
};
final SigninStatus inj1348 = inj1351.getInstance();
final CreationalCallback<EventProvider> inj1353 = new CreationalCallback<EventProvider>() {
public EventProvider getInstance() {
final EventProvider inj1317 = new EventProvider();
org_jboss_errai_enterprise_client_cdi_EventProvider_context(inj1317, new ContextualProviderContext() {
public Annotation[] getQualifiers() {
return new Annotation[0];
}
public Class[] getTypeArguments() {
return new Class[] { LoginEvent.class };
}
});
return inj1317;
}
};
final CreationalCallback<EventsFactory> inj1354 = new CreationalCallback<EventsFactory>() {
public EventsFactory getInstance() {
final EventsFactory inj1352 = new EventsFactory();
com_ocpsoft_socialpm_gwt_client_local_EventsFactory_loggedInEvent(inj1352, inj1353.getInstance().get());
com_ocpsoft_socialpm_gwt_client_local_EventsFactory_messageEvent(inj1352, inj1353.getInstance().get());
return inj1352;
}
};
final EventsFactory inj1352 = inj1354.getInstance();
UiBinder uiBinderInst_com_ocpsoft_socialpm_gwt_client_local_view_FixedLayoutView = GWT.create(FixedLayoutViewUiBinder.class);
UiBinderProvider.registerBinder(FixedLayoutView.class, uiBinderInst_com_ocpsoft_socialpm_gwt_client_local_view_FixedLayoutView);
final CreationalCallback<HomeViewImpl> inj1356 = new CreationalCallback<HomeViewImpl>() {
public HomeViewImpl getInstance() {
final HomeViewImpl inj1355 = new HomeViewImpl();
inj1340.get().subscribe("cdi.event:com.ocpsoft.socialpm.gwt.client.shared.Response", new AbstractCDIEventCallback() {
public void callback(Message message) {
Set<String> msgQualifiers = message.get(Set.class, CDIProtocol.Qualifiers);
if (qualifiers.equals(msgQualifiers) || ((msgQualifiers == null) && qualifiers.isEmpty())) {
inj1355.response(message.get(Response.class, CDIProtocol.BeanReference));
}
}
});
com_ocpsoft_socialpm_gwt_client_local_view_FixedLayoutView_binder(inj1355, inj1349.getInstance().provide(new Class[] { Widget.class, FixedLayoutView.class }, null));
com_ocpsoft_socialpm_gwt_client_local_view_FixedLayoutView_signinStatus(inj1355, inj1348);
inj1340.get().subscribe("cdi.event:com.ocpsoft.socialpm.gwt.client.local.view.events.LoginEvent", new AbstractCDIEventCallback() {
public void callback(Message message) {
Set<String> msgQualifiers = message.get(Set.class, CDIProtocol.Qualifiers);
if (qualifiers.equals(msgQualifiers) || ((msgQualifiers == null) && qualifiers.isEmpty())) {
inj1355.onLogin(message.get(LoginEvent.class, CDIProtocol.BeanReference));
}
}
});
return inj1355;
}
};
final HomeViewImpl inj1355 = inj1356.getInstance();
final CreationalCallback<CallerProvider> inj1358 = new CreationalCallback<CallerProvider>() {
public CallerProvider getInstance() {
final CallerProvider inj1321 = new CallerProvider();
return inj1321;
}
};
final CreationalCallback<ServiceFactory> inj1359 = new CreationalCallback<ServiceFactory>() {
public ServiceFactory getInstance() {
final ServiceFactory inj1357 = new ServiceFactory();
com_ocpsoft_socialpm_gwt_client_local_ServiceFactory_authService(inj1357, inj1358.getInstance().provide(new Class[] { AuthenticationService.class }, null));
com_ocpsoft_socialpm_gwt_client_local_ServiceFactory_profileService(inj1357, inj1358.getInstance().provide(new Class[] { ProfileService.class }, null));
com_ocpsoft_socialpm_gwt_client_local_ServiceFactory_projectService(inj1357, inj1358.getInstance().provide(new Class[] { ProjectService.class }, null));
return inj1357;
}
};
final ServiceFactory inj1357 = inj1359.getInstance();
final CreationalCallback<ProjectViewImpl> inj1361 = new CreationalCallback<ProjectViewImpl>() {
public ProjectViewImpl getInstance() {
final ProjectViewImpl inj1360 = new ProjectViewImpl();
inj1340.get().subscribe("cdi.event:com.ocpsoft.socialpm.gwt.client.local.view.events.LoginEvent", new AbstractCDIEventCallback() {
public void callback(Message message) {
Set<String> msgQualifiers = message.get(Set.class, CDIProtocol.Qualifiers);
if (qualifiers.equals(msgQualifiers) || ((msgQualifiers == null) && qualifiers.isEmpty())) {
inj1360.onLogin(message.get(LoginEvent.class, CDIProtocol.BeanReference));
}
}
});
com_ocpsoft_socialpm_gwt_client_local_view_FixedLayoutView_binder(inj1360, inj1349.getInstance().provide(new Class[] { Widget.class, FixedLayoutView.class }, null));
com_ocpsoft_socialpm_gwt_client_local_view_FixedLayoutView_signinStatus(inj1360, inj1348);
inj1340.get().subscribe("cdi.event:com.ocpsoft.socialpm.gwt.client.local.view.events.LoginEvent", new AbstractCDIEventCallback() {
public void callback(Message message) {
Set<String> msgQualifiers = message.get(Set.class, CDIProtocol.Qualifiers);
if (qualifiers.equals(msgQualifiers) || ((msgQualifiers == null) && qualifiers.isEmpty())) {
inj1360.onLogin(message.get(LoginEvent.class, CDIProtocol.BeanReference));
}
}
});
return inj1360;
}
};
final ProjectViewImpl inj1360 = inj1361.getInstance();
final CreationalCallback<ProfileViewImpl> inj1363 = new CreationalCallback<ProfileViewImpl>() {
public ProfileViewImpl getInstance() {
final ProfileViewImpl inj1362 = new ProfileViewImpl();
com_ocpsoft_socialpm_gwt_client_local_view_FixedLayoutView_binder(inj1362, inj1349.getInstance().provide(new Class[] { Widget.class, FixedLayoutView.class }, null));
com_ocpsoft_socialpm_gwt_client_local_view_FixedLayoutView_signinStatus(inj1362, inj1348);
inj1340.get().subscribe("cdi.event:com.ocpsoft.socialpm.gwt.client.local.view.events.LoginEvent", new AbstractCDIEventCallback() {
public void callback(Message message) {
Set<String> msgQualifiers = message.get(Set.class, CDIProtocol.Qualifiers);
if (qualifiers.equals(msgQualifiers) || ((msgQualifiers == null) && qualifiers.isEmpty())) {
inj1362.onLogin(message.get(LoginEvent.class, CDIProtocol.BeanReference));
}
}
});
return inj1362;
}
};
final ProfileViewImpl inj1362 = inj1363.getInstance();
final CreationalCallback<LoginViewImpl> inj1365 = new CreationalCallback<LoginViewImpl>() {
public LoginViewImpl getInstance() {
final LoginViewImpl inj1364 = new LoginViewImpl();
com_ocpsoft_socialpm_gwt_client_local_view_LoginViewImpl_serviceFactory(inj1364, inj1357);
com_ocpsoft_socialpm_gwt_client_local_view_LoginViewImpl_eventFactory(inj1364, inj1352);
com_ocpsoft_socialpm_gwt_client_local_view_FixedLayoutView_binder(inj1364, inj1349.getInstance().provide(new Class[] { Widget.class, FixedLayoutView.class }, null));
com_ocpsoft_socialpm_gwt_client_local_view_FixedLayoutView_signinStatus(inj1364, inj1348);
inj1340.get().subscribe("cdi.event:com.ocpsoft.socialpm.gwt.client.local.view.events.LoginEvent", new AbstractCDIEventCallback() {
public void callback(Message message) {
Set<String> msgQualifiers = message.get(Set.class, CDIProtocol.Qualifiers);
if (qualifiers.equals(msgQualifiers) || ((msgQualifiers == null) && qualifiers.isEmpty())) {
inj1364.onLogin(message.get(LoginEvent.class, CDIProtocol.BeanReference));
}
}
});
return inj1364;
}
};
final LoginViewImpl inj1364 = inj1365.getInstance();
final CreationalCallback<ClientFactoryImpl> inj1367 = new CreationalCallback<ClientFactoryImpl>() {
public ClientFactoryImpl getInstance() {
final ClientFactoryImpl inj1366 = new ClientFactoryImpl();
com_ocpsoft_socialpm_gwt_client_local_ClientFactoryImpl_eventFactory(inj1366, inj1352);
com_ocpsoft_socialpm_gwt_client_local_ClientFactoryImpl_serviceFactory(inj1366, inj1357);
com_ocpsoft_socialpm_gwt_client_local_ClientFactoryImpl_homeView(inj1366, inj1355);
com_ocpsoft_socialpm_gwt_client_local_ClientFactoryImpl_loginView(inj1366, inj1364);
com_ocpsoft_socialpm_gwt_client_local_ClientFactoryImpl_profileView(inj1366, inj1362);
com_ocpsoft_socialpm_gwt_client_local_ClientFactoryImpl_projectView(inj1366, inj1360);
return inj1366;
}
};
final ClientFactoryImpl inj1366 = inj1367.getInstance();
final CreationalCallback<AppPlaceHistoryMapper> inj1369 = new CreationalCallback<AppPlaceHistoryMapper>() {
public AppPlaceHistoryMapper getInstance() {
final AppPlaceHistoryMapper inj1368 = new AppPlaceHistoryMapper(inj1366);
return inj1368;
}
};
final AppPlaceHistoryMapper inj1368 = inj1369.getInstance();
final InitializationCallback<App> init_inj1370 = new InitializationCallback<App>() {
public void init(App obj) {
obj.setup();
}
};
final CreationalCallback<App> inj1371 = new CreationalCallback<App>() {
public App getInstance() {
final App inj1370 = new App();
com_ocpsoft_socialpm_gwt_client_local_App_clientFactory(inj1370, inj1366);
com_ocpsoft_socialpm_gwt_client_local_App_historyMapper(inj1370, inj1368);
inj1340.get().subscribe("cdi.event:com.ocpsoft.socialpm.gwt.client.local.view.events.LoginEvent", new AbstractCDIEventCallback() {
public void callback(Message message) {
Set<String> msgQualifiers = message.get(Set.class, CDIProtocol.Qualifiers);
if (qualifiers.equals(msgQualifiers) || ((msgQualifiers == null) && qualifiers.isEmpty())) {
inj1370.handleLogin(message.get(LoginEvent.class, CDIProtocol.BeanReference));
}
}
});
return inj1370;
}
};
final App inj1370 = inj1371.getInstance();
final CreationalCallback<MessageBusProvider> inj1373 = new CreationalCallback<MessageBusProvider>() {
public MessageBusProvider getInstance() {
final MessageBusProvider inj1338 = new MessageBusProvider();
return inj1338;
}
};
final MessageBusProvider inj1338 = inj1373.getInstance();
final CreationalCallback<RootPanelProvider> inj1375 = new CreationalCallback<RootPanelProvider>() {
public RootPanelProvider getInstance() {
final RootPanelProvider inj1333 = new RootPanelProvider();
return inj1333;
}
};
final RootPanelProvider inj1333 = inj1375.getInstance();
final CreationalCallback<IOCBeanManagerProvider> inj1377 = new CreationalCallback<IOCBeanManagerProvider>() {
public IOCBeanManagerProvider getInstance() {
final IOCBeanManagerProvider inj1343 = new IOCBeanManagerProvider();
return inj1343;
}
};
final IOCBeanManagerProvider inj1343 = inj1377.getInstance();
final CreationalCallback<RequestDispatcherProvider> inj1379 = new CreationalCallback<RequestDispatcherProvider>() {
public RequestDispatcherProvider getInstance() {
final RequestDispatcherProvider inj1324 = new RequestDispatcherProvider();
return inj1324;
}
};
final RequestDispatcherProvider inj1324 = inj1379.getInstance();
ctx.addDependentBean(UiBinderProvider.class, inj1349, CDI.DEFAULT_QUALIFIERS, null);
ctx.addSingletonBean(MessageBusProvider.class, inj1340, CDI.DEFAULT_QUALIFIERS, null);
ctx.addSingletonBean(SigninStatus.class, inj1348, CDI.DEFAULT_QUALIFIERS, init_inj1348);
ctx.addSingletonBean(Event.class, new ContextualProviderContext() {
public Annotation[] getQualifiers() {
return new Annotation[0];
}
public Class[] getTypeArguments() {
return new Class[] { LoginEvent.class };
}
}, CDI.DEFAULT_QUALIFIERS, null);
ctx.addDependentBean(EventProvider.class, inj1353, CDI.DEFAULT_QUALIFIERS, null);
ctx.addSingletonBean(EventsFactory.class, inj1352, CDI.DEFAULT_QUALIFIERS, null);
ctx.addSingletonBean(HomeViewImpl.class, inj1355, CDI.DEFAULT_QUALIFIERS, null);
ctx.addDependentBean(CallerProvider.class, inj1358, CDI.DEFAULT_QUALIFIERS, null);
ctx.addSingletonBean(ServiceFactory.class, inj1357, CDI.DEFAULT_QUALIFIERS, null);
ctx.addSingletonBean(ProjectViewImpl.class, inj1360, CDI.DEFAULT_QUALIFIERS, null);
ctx.addSingletonBean(ProfileViewImpl.class, inj1362, CDI.DEFAULT_QUALIFIERS, null);
ctx.addSingletonBean(LoginViewImpl.class, inj1364, CDI.DEFAULT_QUALIFIERS, null);
ctx.addSingletonBean(HomeView.class, inj1355, CDI.DEFAULT_QUALIFIERS, null);
ctx.addSingletonBean(LoginView.class, inj1364, CDI.DEFAULT_QUALIFIERS, null);
ctx.addSingletonBean(ProfileView.class, inj1362, CDI.DEFAULT_QUALIFIERS, null);
ctx.addSingletonBean(ProjectView.class, inj1360, CDI.DEFAULT_QUALIFIERS, null);
ctx.addSingletonBean(ClientFactoryImpl.class, inj1366, CDI.DEFAULT_QUALIFIERS, null);
ctx.addSingletonBean(ClientFactory.class, inj1366, CDI.DEFAULT_QUALIFIERS, null);
ctx.addSingletonBean(AppPlaceHistoryMapper.class, inj1368, CDI.DEFAULT_QUALIFIERS, null);
ctx.addSingletonBean(App.class, inj1370, CDI.DEFAULT_QUALIFIERS, init_inj1370);
ctx.addSingletonBean(MessageBusProvider.class, inj1338, CDI.DEFAULT_QUALIFIERS, null);
ctx.addSingletonBean(RootPanelProvider.class, inj1333, CDI.DEFAULT_QUALIFIERS, null);
ctx.addSingletonBean(IOCBeanManagerProvider.class, inj1343, CDI.DEFAULT_QUALIFIERS, null);
ctx.addSingletonBean(RequestDispatcherProvider.class, inj1324, CDI.DEFAULT_QUALIFIERS, null);
init_inj1348.init(inj1348);
init_inj1370.init(inj1370);
return ctx;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment