Examples of EventService


Examples of org.apache.directory.server.core.api.event.EventService

    /**
     * {@inheritDoc}
     */
    public void stop()
    {
        EventService evtSrv = dirService.getEventService();

        evtSrv.removeListener( cledListener );
        //first set the 'stop' flag
        logJanitor.stopCleaning();
        //then interrupt the janitor
        logJanitor.interrupt();

        for ( ReplicaEventLog log : replicaLogMap.values() )
        {
            try
            {
                PROVIDER_LOG.debug( "Stopping the logging for replica ", log.getId() );
                evtSrv.removeListener( log.getPersistentListener() );
                log.stop();
            }
            catch ( Exception e )
            {
                LOG.warn( "Failed to close the event log {}", log.getId(), e );
View Full Code Here

Examples of org.apache.directory.server.core.api.event.EventService

    /**
     * {@inheritDoc}
     */
    public void stop()
    {
        EventService evtSrv = dirService.getEventService();

        evtSrv.removeListener( cledListener );
        //first set the 'stop' flag
        logJanitor.stopCleaning();
        //then interrupt the janitor
        logJanitor.interrupt();

        for ( ReplicaEventLog log : replicaLogMap.values() )
        {
            try
            {
                PROVIDER_LOG.debug( "Stopping the logging for replica ", log.getId() );
                evtSrv.removeListener( log.getPersistentListener() );
                log.stop();
            }
            catch ( Exception e )
            {
                LOG.warn( "Failed to close the event log {}", log.getId(), e );
View Full Code Here

Examples of org.apache.ldap.server.event.EventService

    public void addNamingListener( EventContext ctx, Name name, ExprNode filter, SearchControls searchControls,
                                   NamingListener namingListener ) throws NamingException
    {
        InterceptorChain chain = this.configuration.getInterceptorChain();
        EventService interceptor = ( EventService ) chain.get( "eventService" );
        interceptor.addNamingListener( ctx, name, filter, searchControls, namingListener );
    }
View Full Code Here

Examples of org.apache.ldap.server.event.EventService


    public void removeNamingListener( EventContext ctx, NamingListener namingListener ) throws NamingException
    {
        InterceptorChain chain = this.configuration.getInterceptorChain();
        EventService interceptor = ( EventService ) chain.get( "eventService" );
        interceptor.removeNamingListener( ctx, namingListener );
    }
View Full Code Here

Examples of org.apache.ldap.server.event.EventService

        interceptorCfg.setInterceptor( new CollectiveAttributeService() );
        list.add( interceptorCfg );

        interceptorCfg = new MutableInterceptorConfiguration();
        interceptorCfg.setName( "eventService" );
        interceptorCfg.setInterceptor( new EventService() );
        list.add( interceptorCfg );

        setInterceptorConfigurations( list );
    }
View Full Code Here

Examples of org.bushe.swing.event.EventService

  private static void process(final NiftyEventSubscriber annotation, final Object obj, final Method method, final boolean add) {
    String id = annotation.id();
    String pattern = annotation.pattern();
    ensureNotNull(id, pattern);
    ensureMethodParamCount(method.getParameterTypes());
    EventService eventService = getEventService();
    Class<?> eventClass = method.getParameterTypes()[1];
    if (isSet(id)) {
      idProcess(obj, method, add, id, eventClass, eventService);
    } else {
      patternProcess(obj, method, add, pattern, eventClass, eventService);
View Full Code Here

Examples of org.jbpm.signal.EventService

      // TODO: Is it a valid condition that the jbpmContext is not there?
      JbpmContext jbpmContext = executionContext.getJbpmContext();
      if (jbpmContext != null) {
        Services services = jbpmContext.getServices();
        if (services != null) {
          EventService evService = (EventService) services.getService(EventService.SERVICE_NAME);
          if (evService != null) {
            evService.fireEvent(eventType, this, executionContext);
          }
        }
      }

      fireAndPropagateEvent(eventType, executionContext);
View Full Code Here

Examples of org.knapper.core.events.EventService

   * {@inheritDoc}
   */
  public void start(BundleContext context) throws Exception {
    super.start(context);
   
    eventService = new EventService();
   
    serverSession = new MasterServerSession();
  }
View Full Code Here

Examples of org.knapper.core.events.EventService

   * {@inheritDoc}
   */
  public void start(BundleContext context) throws Exception {
    super.start(context);
   
    eventService = new EventService();
   
    serverSession = MasterServer.newInstance();
  }
View Full Code Here

Examples of org.knapper.core.events.EventService

   * {@inheritDoc}
   */
  public void start(BundleContext context) throws Exception {
    super.start(context);
   
    eventService = new EventService();
   
    clientSession = ClientSession.newInstance();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.