• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java AppConfigService类的典型用法和代码示例

java 1次浏览

本文整理汇总了Java中org.guvnor.common.services.shared.config.AppConfigService的典型用法代码示例。如果您正苦于以下问题:Java AppConfigService类的具体用法?Java AppConfigService怎么用?Java AppConfigService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

AppConfigService类属于org.guvnor.common.services.shared.config包,在下文中一共展示了AppConfigService类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: OptaPlannerWorkbenchEntryPoint

点赞 3

import org.guvnor.common.services.shared.config.AppConfigService; //导入依赖的package包/类
@Inject
public OptaPlannerWorkbenchEntryPoint(final Caller<AppConfigService> appConfigService,
                                      final ActivityBeansCache activityBeansCache,
                                      final DefaultWorkbenchFeaturesMenusHelper menusHelper,
                                      final WorkbenchMegaMenuPresenter menuBar,
                                      final UserMenu userMenu,
                                      final AdminPage adminPage,
                                      final TranslationService translationService) {
    super(appConfigService,
          activityBeansCache);
    this.menusHelper = menusHelper;
    this.menuBar = menuBar;
    this.userMenu = userMenu;
    this.adminPage = adminPage;
    this.translationService = translationService;
}
 

开发者ID:kiegroup,
项目名称:optaplanner-wb,
代码行数:17,
代码来源:OptaPlannerWorkbenchEntryPoint.java

示例2: KieDroolsWorkbenchEntryPoint

点赞 3

import org.guvnor.common.services.shared.config.AppConfigService; //导入依赖的package包/类
@Inject
public KieDroolsWorkbenchEntryPoint(final Caller<AppConfigService> appConfigService,
                                    final ActivityBeansCache activityBeansCache,
                                    final DefaultWorkbenchFeaturesMenusHelper menusHelper,
                                    final ClientUserSystemManager userSystemManager,
                                    final WorkbenchMegaMenuPresenter menuBar,
                                    final Workbench workbench,
                                    final PermissionTreeSetup permissionTreeSetup,
                                    final PerspectiveTreeProvider perspectiveTreeProvider,
                                    final DefaultAdminPageHelper adminPageHelper,
                                    final NavTreeDefinitions navTreeDefinitions,
                                    final NavigationManager navigationManager,
                                    final NavigationExplorerScreen navigationExplorerScreen) {
    super(appConfigService,
          activityBeansCache);
    this.menusHelper = menusHelper;
    this.userSystemManager = userSystemManager;
    this.menuBar = menuBar;
    this.workbench = workbench;
    this.permissionTreeSetup = permissionTreeSetup;
    this.perspectiveTreeProvider = perspectiveTreeProvider;
    this.adminPageHelper = adminPageHelper;
    this.navTreeDefinitions = navTreeDefinitions;
    this.navigationManager = navigationManager;
    this.navigationExplorerScreen = navigationExplorerScreen;
}
 

开发者ID:kiegroup,
项目名称:kie-wb-distributions,
代码行数:27,
代码来源:KieDroolsWorkbenchEntryPoint.java

示例3: KieWorkbenchEntryPoint

点赞 3

import org.guvnor.common.services.shared.config.AppConfigService; //导入依赖的package包/类
@Inject
public KieWorkbenchEntryPoint(final Caller<AppConfigService> appConfigService,
                              final ActivityBeansCache activityBeansCache,
                              final DefaultWorkbenchFeaturesMenusHelper menusHelper,
                              final ClientUserSystemManager userSystemManager,
                              final WorkbenchMegaMenuPresenter menuBar,
                              final Workbench workbench,
                              final PermissionTreeSetup permissionTreeSetup,
                              final DefaultAdminPageHelper adminPageHelper,
                              final NavTreeDefinitions navTreeDefinitions,
                              final NavigationManager navigationManager,
                              final NavigationExplorerScreen navigationExplorerScreen) {
    super(appConfigService,
          activityBeansCache);
    this.menusHelper = menusHelper;
    this.userSystemManager = userSystemManager;
    this.menuBar = menuBar;
    this.workbench = workbench;
    this.permissionTreeSetup = permissionTreeSetup;
    this.adminPageHelper = adminPageHelper;
    this.navTreeDefinitions = navTreeDefinitions;
    this.navigationManager = navigationManager;
    this.navigationExplorerScreen = navigationExplorerScreen;
}
 

开发者ID:kiegroup,
项目名称:kie-wb-distributions,
代码行数:25,
代码来源:KieWorkbenchEntryPoint.java

示例4: DroolsWorkbenchEntryPoint

点赞 3

import org.guvnor.common.services.shared.config.AppConfigService; //导入依赖的package包/类
@Inject
public DroolsWorkbenchEntryPoint(final Caller<AppConfigService> appConfigService,
                                 final ActivityBeansCache activityBeansCache,
                                 final PlaceManager placeManager,
                                 final DefaultWorkbenchFeaturesMenusHelper menusHelper,
                                 final WorkbenchMegaMenuPresenter menuBar,
                                 final AdminPage adminPage,
                                 final DefaultAdminPageHelper adminPageHelper,
                                 final PreferenceScopeFactory scopeFactory,
                                 final WorkbenchConfigurationPresenter workbenchConfigurationPresenter,
                                 final LanguageConfigurationHandler languageConfigurationHandler) {
    super(appConfigService,
          activityBeansCache);
    this.placeManager = placeManager;
    this.menusHelper = menusHelper;
    this.menuBar = menuBar;
    this.adminPage = adminPage;
    this.adminPageHelper = adminPageHelper;
    this.scopeFactory = scopeFactory;
    this.workbenchConfigurationPresenter = workbenchConfigurationPresenter;
    this.languageConfigurationHandler = languageConfigurationHandler;
}
 

开发者ID:kiegroup,
项目名称:drools-wb,
代码行数:23,
代码来源:DroolsWorkbenchEntryPoint.java

示例5: MockAppConfigServiceCaller

点赞 3

import org.guvnor.common.services.shared.config.AppConfigService; //导入依赖的package包/类
private MockAppConfigServiceCaller() {

            service = new AppConfigService() {

                @Override
                public Map<String, String> loadPreferences() {
                    callback.callback(new HashMap<String, String>());
                    return null;
                }

                @Override
                public long getTimestamp() {
                    callback.callback(new Long(1234));
                    return new Long(1234);
                }
            };
        }
 

开发者ID:kiegroup,
项目名称:kie-wb-common,
代码行数:18,
代码来源:DiscussionWidgetPresenterTest.java

示例6: setup

点赞 2

import org.guvnor.common.services.shared.config.AppConfigService; //导入依赖的package包/类
@Before
public void setup() {
    navTreeDefinitions = new NavTreeDefinitions();
    navigationManager = new NavigationManagerImpl(new CallerMock<>(navigationServices),
            null, navTreeLoadedEvent, null, null);

    doAnswer(invocationOnMock -> {
        ((Command) invocationOnMock.getArguments()[0]).execute();
        return null;
    }).when(userSystemManager).waitForInitialization(any(Command.class));

    doReturn(mock(MenuFactory.TopLevelMenusBuilder.class)).when(menusHelper).buildMenusFromNavTree(any());

    CallerMock<AppConfigService> appConfigServiceCallerMock = new CallerMock<>(appConfigService);

    kieWorkbenchEntryPoint = spy(new KieDroolsWorkbenchEntryPoint(appConfigServiceCallerMock,
                                                                  activityBeansCache,
                                                                  menusHelper,
                                                                  userSystemManager,
                                                                  menuBar,
                                                                  workbench,
                                                                  permissionTreeSetup,
                                                                  perspectiveTreeProvider,
                                                                  adminPageHelper,
                                                                  navTreeDefinitions,
                                                                  navigationManager,
                                                                  navigationExplorerScreen));

    doNothing().when(kieWorkbenchEntryPoint).hideLoadingPopup();

    navTreeEditor = spy(new NavTreeEditor(mock(NavTreeEditorView.class), null, syncBeanManager, null, perspectiveTreeProvider, targetPerspectiveEditor, null, null, null, null));
    when(navigationExplorerScreen.getNavTreeEditor()).thenReturn(navTreeEditor);
}
 

开发者ID:kiegroup,
项目名称:kie-wb-distributions,
代码行数:34,
代码来源:KieDroolsWorkbenchEntryPointTest.java

示例7: setup

点赞 2

import org.guvnor.common.services.shared.config.AppConfigService; //导入依赖的package包/类
@Before
public void setup() {
    navTreeDefinitions = new NavTreeDefinitions();
    navigationManager = new NavigationManagerImpl(new CallerMock<>(navigationServices),
                                                  null,
                                                  navTreeLoadedEvent,
                                                  null,
                                                  null);

    doAnswer(invocationOnMock -> {
        ((Command) invocationOnMock.getArguments()[0]).execute();
        return null;
    }).when(userSystemManager).waitForInitialization(any(Command.class));

    doReturn(mock(MenuFactory.TopLevelMenusBuilder.class)).when(menusHelper).buildMenusFromNavTree(any());

    CallerMock<AppConfigService> appConfigServiceCallerMock = new CallerMock<>(appConfigService);

    kieWorkbenchEntryPoint = spy(new KieWorkbenchEntryPoint(appConfigServiceCallerMock,
                                                            activityBeansCache,
                                                            menusHelper,
                                                            userSystemManager,
                                                            menuBar,
                                                            workbench,
                                                            permissionTreeSetup,
                                                            adminPageHelper,
                                                            navTreeDefinitions,
                                                            navigationManager,
            navigationExplorerScreen));

    doNothing().when(kieWorkbenchEntryPoint).hideLoadingPopup();
    when(navigationExplorerScreen.getNavTreeEditor()).thenReturn(navTreeEditor);
}
 

开发者ID:kiegroup,
项目名称:kie-wb-distributions,
代码行数:34,
代码来源:KieWorkbenchEntryPointTest.java

示例8: setup

点赞 2

import org.guvnor.common.services.shared.config.AppConfigService; //导入依赖的package包/类
@Before
public void setup() {
    navTreeDefinitions = new NavTreeDefinitions();
    navigationManager = new NavigationManagerImpl(new CallerMock<>(navigationServices),
                                                  null,
                                                  navTreeLoadedEvent,
                                                  null,
                                                  null);

    doAnswer(invocationOnMock -> {
        ((Command) invocationOnMock.getArguments()[0]).execute();
        return null;
    }).when(userSystemManager).waitForInitialization(any(Command.class));

    doReturn(mock(MenuFactory.TopLevelMenusBuilder.class)).when(menusHelper).buildMenusFromNavTree(any());

    CallerMock<AppConfigService> appConfigServiceCallerMock = new CallerMock<>(appConfigService);

    kieWorkbenchEntryPoint = spy(new KieWorkbenchEntryPoint(appConfigServiceCallerMock,
                                                            activityBeansCache,
                                                            menusHelper,
                                                            userSystemManager,
                                                            menuBar,
                                                            workbench,
                                                            permissionTreeSetup,
                                                            adminPageHelper,
                                                            navTreeDefinitions,
                                                            navigationManager,
                                                            navigationExplorerScreen));

    doNothing().when(kieWorkbenchEntryPoint).hideLoadingPopup();

    navTreeEditor = spy(new NavTreeEditor(mock(NavTreeEditorView.class), null, syncBeanManager, null,
            perspectiveTreeProvider, targetPerspectiveEditor, null, null, null, null));

    when(navigationExplorerScreen.getNavTreeEditor()).thenReturn(navTreeEditor);
}
 

开发者ID:kiegroup,
项目名称:kie-wb-distributions,
代码行数:38,
代码来源:KieWorkbenchEntryPointTest.java

示例9: DecisionTableXLSToDecisionTableGuidedConverter

点赞 2

import org.guvnor.common.services.shared.config.AppConfigService; //导入依赖的package包/类
@Inject
public DecisionTableXLSToDecisionTableGuidedConverter(final @Named("ioStrategy") IOService ioService,
                                                      final DRLTextEditorService drlService,
                                                      final GuidedDecisionTableEditorService guidedDecisionTableService,
                                                      final GlobalsEditorService globalsService,
                                                      final KieModuleService moduleService,
                                                      final ProjectImportsService importsService,
                                                      final MetadataService metadataService,
                                                      final DataModelerService modellerService,
                                                      final DataModelService dataModelService,
                                                      final AppConfigService appConfigService,
                                                      final DecisionTableXLSResourceTypeDefinition xlsDTableType,
                                                      final DecisionTableXLSXResourceTypeDefinition xlsxDTableType,
                                                      final GuidedDTableResourceTypeDefinition guidedDTableType,
                                                      final DRLResourceTypeDefinition drlType,
                                                      final GlobalResourceTypeDefinition globalsType) {
    this.ioService = ioService;
    this.drlService = drlService;
    this.guidedDecisionTableService = guidedDecisionTableService;
    this.globalsService = globalsService;
    this.moduleService = moduleService;
    this.importsService = importsService;
    this.metadataService = metadataService;
    this.modellerService = modellerService;
    this.dataModelService = dataModelService;
    this.appConfigService = appConfigService;
    this.xlsDTableType = xlsDTableType;
    this.xlsxDTableType = xlsxDTableType;
    this.guidedDTableType = guidedDTableType;
    this.drlType = drlType;
    this.globalsType = globalsType;
}
 

开发者ID:kiegroup,
项目名称:drools-wb,
代码行数:33,
代码来源:DecisionTableXLSToDecisionTableGuidedConverter.java

示例10: mockAppConfigService

点赞 2

import org.guvnor.common.services.shared.config.AppConfigService; //导入依赖的package包/类
private void mockAppConfigService() {
    appConfigService = mock(AppConfigService.class);
    Map<String, String> preferencesMap = new HashMap<>();
    preferencesMap.put("key",
                       "value");
    doReturn(preferencesMap).when(appConfigService).loadPreferences();
    appConfigServiceCallerMock = new CallerMock<>(appConfigService);
}
 

开发者ID:kiegroup,
项目名称:kie-wb-common,
代码行数:9,
代码来源:DefaultWorkbenchEntryPointTest.java

示例11: ShowcaseEntryPoint

点赞 2

import org.guvnor.common.services.shared.config.AppConfigService; //导入依赖的package包/类
@Inject
public ShowcaseEntryPoint(final Caller<AppConfigService> appConfigService,
                          final ActivityBeansCache activityBeansCache,
                          final DefaultWorkbenchFeaturesMenusHelper menusHelper,
                          final MenuDevCommandsBuilder menuDevCommandsBuilder,
                          final Caller<ShowcaseService> showcaseService,
                          final Event<WorkspaceProjectContextChangeEvent> contextChangeEvent) {
    super(appConfigService,
          activityBeansCache);
    this.menusHelper = menusHelper;
    this.menuDevCommandsBuilder = menuDevCommandsBuilder;
    this.showcaseService = showcaseService;
    this.contextChangeEvent = contextChangeEvent;
}
 

开发者ID:kiegroup,
项目名称:kie-wb-common,
代码行数:15,
代码来源:ShowcaseEntryPoint.java

示例12: DiscussionWidgetPresenter

点赞 2

import org.guvnor.common.services.shared.config.AppConfigService; //导入依赖的package包/类
@Inject
public DiscussionWidgetPresenter(
        final DiscussionWidgetView view,
        final User identity,
        final Caller<AppConfigService> appConfigService) {
    this.view = view;
    this.identity = identity;
    this.appConfigService = appConfigService;

    view.setPresenter( this );

}
 

开发者ID:kiegroup,
项目名称:kie-wb-common,
代码行数:13,
代码来源:DiscussionWidgetPresenter.java

示例13: DefaultWorkbenchEntryPoint

点赞 2

import org.guvnor.common.services.shared.config.AppConfigService; //导入依赖的package包/类
@Inject
public DefaultWorkbenchEntryPoint(Caller<AppConfigService> appConfigService,
                                  ActivityBeansCache activityBeansCache) {
    this.appConfigService = appConfigService;
    this.activityBeansCache = activityBeansCache;
}
 

开发者ID:kiegroup,
项目名称:kie-wb-common,
代码行数:7,
代码来源:DefaultWorkbenchEntryPoint.java

示例14: call

点赞 2

import org.guvnor.common.services.shared.config.AppConfigService; //导入依赖的package包/类
@Override
public AppConfigService call() {
    return service;
}
 

开发者ID:kiegroup,
项目名称:kie-wb-common,
代码行数:5,
代码来源:DiscussionWidgetPresenterTest.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)