當前位置: 首頁>>代碼示例>>Java>>正文


Java Event類代碼示例

本文整理匯總了Java中javax.enterprise.event.Event的典型用法代碼示例。如果您正苦於以下問題:Java Event類的具體用法?Java Event怎麽用?Java Event使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


Event類屬於javax.enterprise.event包,在下文中一共展示了Event類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: setUp

import javax.enterprise.event.Event; //導入依賴的package包/類
@Before
public void setUp() throws Exception {
    ServiceLocator locator = ServiceLocatorUtilities.createAndPopulateServiceLocator();
    ServiceLocatorUtilities.bind(locator, new AbstractBinder() {

        @Override
        protected void configure() {
            bind(SecurityService.class).to(SecurityService.class);
            bind(accountDao).to(AccountDao.class);
            bind(passwordDao).to(AccountPasswordDao.class);
            bind(userProvider).to(UserProvider.class);
            bind(event).to(new TypeLiteral<Event<SignedInEvent>>() {
            });
        }
    });
    locator.inject(this);
}
 
開發者ID:backpaper0,項目名稱:sealion,代碼行數:18,代碼來源:SecurityServiceTest.java

示例2: CSVDataSetEditor

import javax.enterprise.event.Event; //導入依賴的package包/類
@Inject
public CSVDataSetEditor(final DataSetDefBasicAttributesEditor basicAttributesEditor,
                        final CSVDataSetDefAttributesEditor attributesEditor,
                        final DataSetDefColumnsFilterEditor columnsAndFilterEditor,
                        final DataSetDefPreviewTable previewTable,
                        final DataSetDefBackendCacheAttributesEditor backendCacheAttributesEditor,
                        final DataSetDefClientCacheAttributesEditor clientCacheAttributesEditor,
                        final DataSetDefRefreshAttributesEditor refreshEditor,
                        final DataSetClientServices clientServices,
                        final LoadingBox loadingBox,
                        final Event<ErrorEvent> errorEvent,
                        final Event<TabChangedEvent> tabChangedEvent,
                        final View view) {
    super(basicAttributesEditor, attributesEditor.view, columnsAndFilterEditor, 
            previewTable, backendCacheAttributesEditor, clientCacheAttributesEditor,
            refreshEditor, clientServices, loadingBox, errorEvent, tabChangedEvent, view);
    this.attributesEditor = attributesEditor;
}
 
開發者ID:kiegroup,項目名稱:appformer,代碼行數:19,代碼來源:CSVDataSetEditor.java

示例3: SolverEditorPresenter

import javax.enterprise.event.Event; //導入依賴的package包/類
@Inject
public SolverEditorPresenter(final SolverEditorView view,
                             final SolverResourceType solverResourceType,
                             final XMLViewer xmlViewer,
                             final Event<NotificationEvent> notification,
                             final Caller<SolverEditorService> solverService,
                             final ValidationPopup validationPopup,
                             final TranslationService translationService) {
    super(view);

    this.xmlViewer = xmlViewer;
    this.view = view;
    this.solverResourceType = solverResourceType;
    this.notification = notification;
    this.solverService = solverService;
    this.validationPopup = validationPopup;
    this.translationService = translationService;
}
 
開發者ID:kiegroup,項目名稱:optaplanner-wb,代碼行數:19,代碼來源:SolverEditorPresenter.java

示例4: PlannerDataObjectEditor

import javax.enterprise.event.Event; //導入依賴的package包/類
@Inject
public PlannerDataObjectEditor(PlannerDataObjectEditorView view,
                               DomainHandlerRegistry handlerRegistry,
                               Event<DataModelerEvent> dataModelerEvent,
                               DataModelCommandBuilder commandBuilder,
                               TranslationService translationService,
                               Caller<ComparatorDefinitionService> comparatorDefinitionService,
                               Caller<AssetsUsageService> assetsUsageServiceCaller) {
    super(handlerRegistry,
          dataModelerEvent,
          commandBuilder);
    this.view = view;
    this.translationService = translationService;
    this.comparatorDefinitionService = comparatorDefinitionService;
    this.assetsUsageServiceCaller = assetsUsageServiceCaller;

    view.init(this);
    view.initPlanningSolutionScoreTypeOptions(getPlanningSolutionScoreTypeOptions());
}
 
開發者ID:kiegroup,項目名稱:optaplanner-wb,代碼行數:20,代碼來源:PlannerDataObjectEditor.java

示例5: SQLDataSetEditor

import javax.enterprise.event.Event; //導入依賴的package包/類
@Inject
public SQLDataSetEditor(final DataSetDefBasicAttributesEditor basicAttributesEditor,
                        final SQLDataSetDefAttributesEditor attributesEditor,
                        final DataSetDefColumnsFilterEditor columnsAndFilterEditor,
                        final DataSetDefPreviewTable previewTable,
                        final DataSetDefBackendCacheAttributesEditor backendCacheAttributesEditor,
                        final DataSetDefClientCacheAttributesEditor clientCacheAttributesEditor,
                        final DataSetDefRefreshAttributesEditor refreshEditor,
                        final DataSetClientServices clientServices,
                        final LoadingBox loadingBox,
                        final Event<ErrorEvent> errorEvent,
                        final Event<TabChangedEvent> tabChangedEvent,
                        final View view) {
    super(basicAttributesEditor, attributesEditor.view, columnsAndFilterEditor, 
            previewTable, backendCacheAttributesEditor, clientCacheAttributesEditor,
            refreshEditor, clientServices, loadingBox, errorEvent, tabChangedEvent, view);
    this.attributesEditor = attributesEditor;
}
 
開發者ID:kiegroup,項目名稱:appformer,代碼行數:19,代碼來源:SQLDataSetEditor.java

示例6: GroupsExplorer

import javax.enterprise.event.Event; //導入依賴的package包/類
@Inject
public GroupsExplorer(final ClientUserSystemManager userSystemManager,
                      final Event<OnErrorEvent> errorEvent,
                      final LoadingBox loadingBox,
                      final EntitiesList<Group> entitiesList,
                      final EntitiesExplorerView view,
                      final Event<ReadGroupEvent> readGroupEvent,
                      final Event<NewGroupEvent> newGroupEvent) {
    super(userSystemManager,
          errorEvent,
          loadingBox,
          entitiesList,
          view);
    this.readGroupEvent = readGroupEvent;
    this.newGroupEvent = newGroupEvent;
}
 
開發者ID:kiegroup,項目名稱:appformer,代碼行數:17,代碼來源:GroupsExplorer.java

示例7: RoleEditor

import javax.enterprise.event.Event; //導入依賴的package包/類
@Inject
public RoleEditor(final ClientUserSystemManager userSystemManager,
                  final ACLSettings aclSettings,
                  final ACLViewer aclViewer,
                  final ACLEditor aclEditor,
                  final Event<OnEditEvent> onEditEvent,
                  final Event<OnShowEvent> onShowEvent,
                  final View view) {

    this.userSystemManager = userSystemManager;
    this.aclSettings = aclSettings;
    this.aclViewer = aclViewer;
    this.aclEditor = aclEditor;
    this.onEditEvent = onEditEvent;
    this.onShowEvent = onShowEvent;
    this.view = view;
}
 
開發者ID:kiegroup,項目名稱:appformer,代碼行數:18,代碼來源:RoleEditor.java

示例8: BaseRoleEditorWorkflow

import javax.enterprise.event.Event; //導入依賴的package包/類
public BaseRoleEditorWorkflow(final ClientUserSystemManager userSystemManager,
                              final Caller<AuthorizationService> authorizationService,
                              final PermissionManager permissionManager,
                              final Event<OnErrorEvent> errorEvent,
                              final Event<NotificationEvent> workbenchNotification,
                              final Event<SaveRoleEvent> saveRoleEvent,
                              final ConfirmBox confirmBox,
                              final RoleEditor roleEditor,
                              final RoleEditorDriver roleEditorDriver,
                              final LoadingBox loadingBox,
                              final EntityWorkflowView view) {

    this.userSystemManager = userSystemManager;
    this.authorizationService = authorizationService;
    this.permissionManager = permissionManager;
    this.errorEvent = errorEvent;
    this.workbenchNotification = workbenchNotification;
    this.saveRoleEvent = saveRoleEvent;
    this.confirmBox = confirmBox;
    this.roleEditor = roleEditor;
    this.roleEditorDriver = roleEditorDriver;
    this.loadingBox = loadingBox;
    this.view = view;
    this.isDirty = false;
}
 
開發者ID:kiegroup,項目名稱:appformer,代碼行數:26,代碼來源:BaseRoleEditorWorkflow.java

示例9: GroupEditor

import javax.enterprise.event.Event; //導入依賴的package包/類
@Inject
public GroupEditor(final ClientUserSystemManager userSystemManager,
                   final Event<OnEditEvent> onEditEvent,
                   final Event<OnShowEvent> onShowEvent,
                   final Event<OnDeleteEvent> onDeleteEvent,
                   final ACLSettings aclSettings,
                   final ACLViewer aclViewer,
                   final ACLEditor aclEditor,
                   final View view) {
    this.userSystemManager = userSystemManager;
    this.onDeleteEvent = onDeleteEvent;
    this.aclSettings = aclSettings;
    this.aclViewer = aclViewer;
    this.aclEditor = aclEditor;
    this.onEditEvent = onEditEvent;
    this.onShowEvent = onShowEvent;
    this.view = view;
}
 
開發者ID:kiegroup,項目名稱:appformer,代碼行數:19,代碼來源:GroupEditor.java

示例10: ConfigurationServiceImpl

import javax.enterprise.event.Event; //導入依賴的package包/類
@Inject
public ConfigurationServiceImpl(final @Named("system") org.guvnor.structure.repositories.Repository systemRepository,
                                final ConfigGroupMarshaller marshaller,
                                final User identity,
                                final @Named("configIO") IOService ioService,
                                final @Repository Event<SystemRepositoryChangedEvent> repoChangedEvent,
                                final @OrgUnit Event<SystemRepositoryChangedEvent> orgUnitChangedEvent,
                                final Event<SystemRepositoryChangedEvent> changedEvent,
                                final @Named("systemFS") FileSystem fs) {
    this.systemRepository = systemRepository;
    this.marshaller = marshaller;
    this.identity = identity;
    this.ioService = ioService;
    this.repoChangedEvent = repoChangedEvent;
    this.orgUnitChangedEvent = orgUnitChangedEvent;
    this.changedEvent = changedEvent;
    this.fs = fs;
}
 
開發者ID:kiegroup,項目名稱:appformer,代碼行數:19,代碼來源:ConfigurationServiceImpl.java

示例11: UserEditorWorkflow

import javax.enterprise.event.Event; //導入依賴的package包/類
@Inject
public UserEditorWorkflow(final ClientUserSystemManager userSystemManager,
                          final Event<OnErrorEvent> errorEvent,
                          final Event<NotificationEvent> workbenchNotification,
                          final Event<DeleteUserEvent> deleteUserEvent,
                          final Event<SaveUserEvent> saveUserEvent,
                          final ConfirmBox confirmBox,
                          final UserEditor userEditor,
                          final UserEditorDriver userEditorDriver,
                          final ChangePassword changePassword,
                          final LoadingBox loadingBox,
                          final EntityWorkflowView view) {

    super(userSystemManager,
          errorEvent,
          workbenchNotification,
          deleteUserEvent,
          saveUserEvent,
          confirmBox,
          userEditor,
          userEditorDriver,
          changePassword,
          loadingBox,
          view);
}
 
開發者ID:kiegroup,項目名稱:appformer,代碼行數:26,代碼來源:UserEditorWorkflow.java

示例12: DataSetDefWizardScreen

import javax.enterprise.event.Event; //導入依賴的package包/類
@Inject
public DataSetDefWizardScreen(final SyncBeanManager beanManager,
                              final DataSetEditorWorkflowFactory workflowFactory,
                              final Caller<DataSetDefVfsServices> services,
                              final DataSetClientServices clientServices,
                              final Event<NotificationEvent> notification,
                              final PlaceManager placeManager,
                              final ErrorPopupPresenter errorPopupPresenter,
                              final SavePopUpPresenter savePopUpPresenter,
                              final DataSetDefScreenView view) {
    this.beanManager = beanManager;
    this.workflowFactory = workflowFactory;
    this.services = services;
    this.clientServices = clientServices;
    this.notification = notification;
    this.placeManager = placeManager;
    this.errorPopupPresenter = errorPopupPresenter;
    this.savePopUpPresenter = savePopUpPresenter;
    this.view = view;
}
 
開發者ID:kiegroup,項目名稱:appformer,代碼行數:21,代碼來源:DataSetDefWizardScreen.java

示例13: NavRootNodeEditor

import javax.enterprise.event.Event; //導入依賴的package包/類
@Inject
public NavRootNodeEditor(NavRootNodeEditorView view,
                         SyncBeanManager beanManager,
                         PlaceManager placeManager,
                         PerspectiveTreeProvider perspectiveTreeProvider,
                         TargetPerspectiveEditor targetPerspectiveEditor,
                         PerspectivePluginManager perspectivePluginManager,
                         Event<NavItemEditStartedEvent> navItemEditStartedEvent,
                         Event<NavItemEditCancelledEvent> navItemEditCancelledEvent) {

    super(view, beanManager,
            placeManager,
            perspectiveTreeProvider,
            targetPerspectiveEditor,
            perspectivePluginManager,
            navItemEditStartedEvent,
            navItemEditCancelledEvent);

    this.view = view;
    this.view.init(this);

    super.setChildEditorClass(NavItemDefaultEditor.class);
}
 
開發者ID:kiegroup,項目名稱:appformer,代碼行數:24,代碼來源:NavRootNodeEditor.java

示例14: TreeHierarchyStructurePresenter

import javax.enterprise.event.Event; //導入依賴的package包/類
@Inject
public TreeHierarchyStructurePresenter(final View view,
                                       final Caller<PreferenceBeanServerStore> preferenceBeanServerStoreCaller,
                                       final ManagedInstance<TreeHierarchyInternalItemPresenter> treeHierarchyInternalItemPresenterProvider,
                                       final ManagedInstance<TreeHierarchyLeafItemPresenter> treeHierarchyLeafItemPresenterProvider,
                                       final Event<HierarchyItemFormInitializationEvent> hierarchyItemFormInitializationEvent,
                                       final PlaceManager placeManager,
                                       final PreferenceBeanStore store,
                                       final Event<NotificationEvent> notification,
                                       final PreferenceFormBeansInfo preferenceFormBeansInfo) {
    this.view = view;
    this.preferenceBeanServerStoreCaller = preferenceBeanServerStoreCaller;
    this.treeHierarchyInternalItemPresenterProvider = treeHierarchyInternalItemPresenterProvider;
    this.treeHierarchyLeafItemPresenterProvider = treeHierarchyLeafItemPresenterProvider;
    this.hierarchyItemFormInitializationEvent = hierarchyItemFormInitializationEvent;
    this.placeManager = placeManager;
    this.store = store;
    this.notification = notification;
    this.preferenceFormBeansInfo = preferenceFormBeansInfo;
}
 
開發者ID:kiegroup,項目名稱:appformer,代碼行數:21,代碼來源:TreeHierarchyStructurePresenter.java

示例15: ElasticSearchDataSetEditor

import javax.enterprise.event.Event; //導入依賴的package包/類
@Inject
public ElasticSearchDataSetEditor(final DataSetDefBasicAttributesEditor basicAttributesEditor,
                                  final ElasticSearchDataSetDefAttributesEditor attributesEditor,
                                  final DataSetDefColumnsFilterEditor columnsAndFilterEditor,
                                  final DataSetDefPreviewTable previewTable,
                                  final DataSetDefBackendCacheAttributesEditor backendCacheAttributesEditor,
                                  final DataSetDefClientCacheAttributesEditor clientCacheAttributesEditor,
                                  final DataSetDefRefreshAttributesEditor refreshEditor,
                                  final DataSetClientServices clientServices,
                                  final LoadingBox loadingBox,
                                  final Event<ErrorEvent> errorEvent,
                                  final Event<TabChangedEvent> tabChangedEvent,
                                  final DataSetEditor.View view) {
    super(basicAttributesEditor, attributesEditor.view, columnsAndFilterEditor,
            previewTable, backendCacheAttributesEditor, clientCacheAttributesEditor,
            refreshEditor, clientServices, loadingBox, errorEvent, tabChangedEvent, view);
    this.attributesEditor = attributesEditor;
}
 
開發者ID:kiegroup,項目名稱:appformer,代碼行數:19,代碼來源:ElasticSearchDataSetEditor.java


注:本文中的javax.enterprise.event.Event類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。