Package org.jboss.arquillian.core.api.threading

Examples of org.jboss.arquillian.core.api.threading.ContextSnapshot


   // TODO: cast to raw type to get away from generic issue..
   @SuppressWarnings({"unchecked", "rawtypes"})
   public ContainerMethodExecutor getContainerMethodExecutor(ProtocolDefinition protocol, ProtocolConfiguration protocolConfiguration)
   {
      final ContextSnapshot state = executorService.get().createSnapshotContext();
     
      ContainerMethodExecutor executor = ((Protocol)protocol.getProtocol()).getExecutor(
            protocolConfiguration,
            protocolMetadata.get(), new CommandCallback()
            {
               @Override
               public void fired(Command<?> event)
               {
                  state.activate();
                  try
                  {
                     remoteEvent.fire(event);
                  }
                  finally
                  {
                     state.deactivate();
                  }
               }
            });
      return executor;
   }
View Full Code Here

TOP

Related Classes of org.jboss.arquillian.core.api.threading.ContextSnapshot

Copyright © 2018 www.massapicom. 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.