Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for on_event (0.06 sec)

  1. docs/de/docs/advanced/async-tests.md

    timeerror-task-attached-to-a-different-loop" class="external-link" target="_blank">MongoDBs MotorClient</a>), dann denken Sie daran, Objekte zu instanziieren, die einen Event Loop nur innerhalb asynchroner Funktionen benötigen, z. B. einen `@app.on_event("startup")`-Callback.
    
    ///...
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 15:34:47 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  2. docs/en/docs/advanced/async-tests.md

    href="https://stackoverflow.com/questions/41584243/runtimeerror-task-attached-to-a-different-loop" class="external-link" target="_blank">MongoDB's MotorClient</a>), remember to instantiate objects that need an event loop only within async functions, e.g. an `'@app.on_event("startup")` callback.
    
    ///...
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 15:43:29 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  3. impl/maven-core/src/main/java/org/apache/maven/eventspy/internal/EventSpyRepositoryListener.java

            dispatcher.onEvent(event);
            delegate.artifactDeployed(event);
        }
    
        @Override
        public void artifactDeploying(RepositoryEvent event) {
            dispatcher.onEvent(event);
            delegate.artifactDeploying(event);
        }
    
        @Override
        public void artifactDescriptorInvalid(RepositoryEvent event) {
            dispatcher.onEvent(event);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  4. impl/maven-core/src/main/java/org/apache/maven/eventspy/internal/EventSpyExecutionListener.java

            dispatcher.onEvent(event);
            delegate.projectDiscoveryStarted(event);
        }
    
        @Override
        public void sessionStarted(ExecutionEvent event) {
            dispatcher.onEvent(event);
            delegate.sessionStarted(event);
        }
    
        @Override
        public void sessionEnded(ExecutionEvent event) {
            dispatcher.onEvent(event);
            delegate.sessionEnded(event);
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  5. impl/maven-core/src/main/java/org/apache/maven/eventspy/internal/EventSpyDispatcher.java

                    logError("initialize", e, eventSpy);
                }
            }
        }
    
        public void onEvent(Object event) {
            if (eventSpies.isEmpty()) {
                return;
            }
            for (EventSpy eventSpy : eventSpies) {
                try {
                    eventSpy.onEvent(event);
                } catch (Exception | LinkageError e) {
                    logError("notify", e, eventSpy);
                }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  6. impl/maven-core/src/main/java/org/apache/maven/internal/impl/EventSpyImpl.java

        EventSpyImpl(DefaultSessionFactory sessionFactory) {
            this.sessionFactory = sessionFactory;
        }
    
        @Override
        public void init(Context context) throws Exception {}
    
        @Override
        public void onEvent(Object arg) throws Exception {
            if (arg instanceof ExecutionEvent) {
                ExecutionEvent ee = (ExecutionEvent) arg;
                InternalMavenSession session =
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  7. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/DefaultMavenInvoker.java

                context.eventSpyDispatcher.onEvent(settingsBuilderRequest);
            }
        }
    
        @Override
        protected void customizeSettingsResult(C context, SettingsBuilderResult settingsBuilderResult) throws Exception {
            if (context.eventSpyDispatcher != null) {
                context.eventSpyDispatcher.onEvent(settingsBuilderResult);
            }
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 29.8K bytes
    - Viewed (0)
  8. 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 '{}'",
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  9. impl/maven-core/src/main/java/org/apache/maven/artifact/handler/manager/DefaultArtifactHandlerManager.java

            this.typeRegistry = requireNonNull(typeRegistry, "null typeRegistry");
            this.allHandlers = new ConcurrentHashMap<>();
        }
    
        @Override
        public void onEvent(Object event) {
            if (event instanceof ExecutionEvent) {
                ExecutionEvent executionEvent = (ExecutionEvent) event;
                if (executionEvent.getType() == ExecutionEvent.Type.SessionEnded) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  10. impl/maven-core/src/main/java/org/apache/maven/eventspy/AbstractEventSpy.java

     * @since 3.0.2
     */
    public abstract class AbstractEventSpy implements EventSpy {
    
        public void init(Context context) throws Exception {}
    
        public void onEvent(Object event) throws Exception {}
    
        public void close() throws Exception {}
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.1K bytes
    - Viewed (0)
Back to top