Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 10 for on_event (0.07 seconds)

  1. tests/test_router_events.py

        def app_shutdown() -> None:
            state.app_shutdown = True
    
        router = APIRouter()
    
        @router.on_event("startup")
        def router_startup() -> None:
            state.router_startup = True
    
        @router.on_event("shutdown")
        def router_shutdown() -> None:
            state.router_shutdown = True
    
        sub_router = APIRouter()
    
        @sub_router.on_event("startup")
        def sub_router_startup() -> None:
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 11.7K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/eventbus/EventBusTest.java

        bus.register(objCatcher);
        bus.register(compCatcher);
    
        // Two additional event types: Object and Comparable<?> (played by Integer)
        Object objEvent = new Object();
        Object compEvent = 6;
    
        bus.post(EVENT);
        bus.post(objEvent);
        bus.post(compEvent);
    
        // Check the StringCatcher...
        List<String> stringEvents = stringCatcher.getEvents();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 11.6K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/eventbus/EventBusTest.java

        bus.register(objCatcher);
        bus.register(compCatcher);
    
        // Two additional event types: Object and Comparable<?> (played by Integer)
        Object objEvent = new Object();
        Object compEvent = 6;
    
        bus.post(EVENT);
        bus.post(objEvent);
        bus.post(compEvent);
    
        // Check the StringCatcher...
        List<String> stringEvents = stringCatcher.getEvents();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 11.6K bytes
    - Click Count (0)
  4. compat/maven-embedder/src/main/java/org/apache/maven/cli/configuration/SettingsXmlConfigurationProcessor.java

            }
            settingsRequest.setUserProperties(props);
    
            if (request.getEventSpyDispatcher() != null) {
                request.getEventSpyDispatcher().onEvent(settingsRequest);
            }
    
            LOGGER.debug(
                    "Reading installation settings from '{}'",
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Sat Apr 19 18:49:57 GMT 2025
    - 12K bytes
    - Click Count (0)
  5. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/MavenInvoker.java

        protected int doExecute(MavenContext context, MavenExecutionRequest request) throws Exception {
            context.eventSpyDispatcher.onEvent(request);
    
            MavenExecutionResult result;
            try {
                result = context.maven.execute(request);
                context.eventSpyDispatcher.onEvent(result);
            } finally {
                context.eventSpyDispatcher.close();
            }
    
            if (result.hasExceptions()) {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Thu Sep 11 17:20:46 GMT 2025
    - 28.2K bytes
    - Click Count (0)
  6. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleDependencyResolver.java

                        new DefaultDependencyResolutionRequest(project, session.getRepositorySession());
                request.setResolutionFilter(resolutionFilter);
    
                eventSpyDispatcher.onEvent(request);
    
                result = dependenciesResolver.resolve(request);
            } catch (DependencyResolutionException e) {
                result = e.getResult();
    
                /*
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 15.6K bytes
    - Click Count (0)
  7. compat/maven-embedder/src/test/java/org/apache/maven/cli/MavenCliTest.java

            orderedEventSpyDispatcherMock
                    .verify(eventSpyDispatcherMock, times(1))
                    .onEvent(any(ToolchainsBuildingRequest.class));
            orderedEventSpyDispatcherMock
                    .verify(eventSpyDispatcherMock, times(1))
                    .onEvent(any(ToolchainsBuildingResult.class));
        }
    
        @Test
        void resumeFromSelectorIsSuggestedWithoutGroupId() {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Sep 17 10:01:14 GMT 2025
    - 30.9K bytes
    - Click Count (0)
  8. .teamcity/src/main/kotlin/common/CommonExtensions.kt

            param("env.BUILD_BRANCH", "%teamcity.build.branch%")
        }
    
        vcs {
            root(AbsoluteId(VersionedSettingsBranch.fromDslContext().vcsRootId()))
            checkoutMode = CheckoutMode.ON_AGENT
            branchFilter = branchesFilterExcluding()
        }
    
        features {
            enablePullRequestFeature()
        }
    
        requirements {
            requiresOs(os)
            requiresArch(os, arch)
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Fri Mar 13 05:03:56 GMT 2026
    - 14.8K bytes
    - Click Count (0)
  9. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LookupInvoker.java

                    .build();
    
            customizeSettingsRequest(context, settingsRequest);
            if (context.eventSpyDispatcher != null) {
                context.eventSpyDispatcher.onEvent(settingsRequest);
            }
    
            context.logger.debug("Reading installation settings from '" + installationSettingsFile + "'");
            context.logger.debug("Reading project settings from '" + projectSettingsFile + "'");
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Oct 28 13:01:07 GMT 2025
    - 43.2K bytes
    - Click Count (0)
  10. impl/maven-core/src/main/java/org/apache/maven/ReactorReader.java

            ReactorReaderSpy(Lookup lookup) {
                this.lookup = lookup;
            }
    
            @Override
            public void init(Context context) throws Exception {}
    
            @Override
            public void onEvent(Object event) throws Exception {
                if (event instanceof ExecutionEvent executionEvent) {
                    ReactorReader reactorReader = lookup.lookup(ReactorReader.class);
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Mon Dec 15 11:20:38 GMT 2025
    - 24.4K bytes
    - Click Count (0)
Back to Top