io.fabric8.runtime.itests.support.ServiceLocator.class Maven / Gradle / Ivy
???? 2 ?
( m
n o p q r s r t
' u v
m w
x
y z
{
| } ' ~
? ? ?
' ? ?
? ?
m r ? ?
?
? ?
? ? ?
?
?
?
? ? ? ?
" m ?`
? ? ? InnerClasses DEFAULT_TIMEOUT Ljava/lang/Long; ()V Code LineNumberTable LocalVariableTable this 2Lio/fabric8/runtime/itests/support/ServiceLocator;
getService %(Ljava/lang/Class;)Ljava/lang/Object; type Ljava/lang/Class;
moduleContext (Lorg/jboss/gravia/runtime/ModuleContext; sref +Lorg/jboss/gravia/runtime/ServiceReference; LocalVariableTypeTable Ljava/lang/Class; 0Lorg/jboss/gravia/runtime/ServiceReference;
StackMapTable ? ? ? Signature 1(Ljava/lang/Class;)TT; M(Lorg/jboss/gravia/runtime/ModuleContext;Ljava/lang/Class;)Ljava/lang/Object; Y(Lorg/jboss/gravia/runtime/ModuleContext;Ljava/lang/Class;)TT; getRequiredService service Ljava/lang/Object; TT; awaitService 7(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Object;
filterspec Ljava/lang/String; C(Ljava/lang/Class;Ljava/lang/String;)TT; W(Ljava/lang/Class;Ljava/lang/String;JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object; timeout J unit Ljava/util/concurrent/TimeUnit; c(Ljava/lang/Class;Ljava/lang/String;JLjava/util/concurrent/TimeUnit;)TT; (Lorg/jboss/gravia/runtime/ModuleContext;Ljava/lang/Class;Ljava/lang/String;JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object; ex Ljava/lang/InterruptedException; latch %Ljava/util/concurrent/CountDownLatch;
serviceRef -Ljava/util/concurrent/atomic/AtomicReference; srvfilter !Lorg/jboss/gravia/runtime/Filter; tracker )Lorg/jboss/gravia/runtime/ServiceTracker; 2Ljava/util/concurrent/atomic/AtomicReference; 1Lorg/jboss/gravia/runtime/ServiceTracker; ? ? ? ? ? ? ?(Lorg/jboss/gravia/runtime/ModuleContext;Ljava/lang/Class;Ljava/lang/String;JLjava/util/concurrent/TimeUnit;)TT;
SourceFile ServiceLocator.java - . ? ? ? ? ? ? ? ? ? 4 ? 4 E java/lang/StringBuilder Service available: ? ? ? ? ? ? ? ? ? ? + , ? ? ? ? ? T K V #java/util/concurrent/CountDownLatch - ? +java/util/concurrent/atomic/AtomicReference ? ? 2io/fabric8/runtime/itests/support/ServiceLocator$1 - ? ? ? . ? ? java/lang/RuntimeException Cannot obtain service: ? ? - ? ? ? ? . java/lang/InterruptedException java/lang/IllegalStateException ? ? 0io/fabric8/runtime/itests/support/ServiceLocator java/lang/Object &org/jboss/gravia/runtime/ModuleContext )org/jboss/gravia/runtime/ServiceReference org/jboss/gravia/runtime/Filter 'org/jboss/gravia/runtime/ServiceTracker java/lang/Throwable 'org/jboss/gravia/runtime/RuntimeLocator getRequiredRuntime $()Lorg/jboss/gravia/runtime/Runtime; org/jboss/gravia/runtime/Runtime getModuleContext *()Lorg/jboss/gravia/runtime/ModuleContext; getServiceReference >(Ljava/lang/Class;)Lorg/jboss/gravia/runtime/ServiceReference; ?(Lorg/jboss/gravia/runtime/ServiceReference;)Ljava/lang/Object; append -(Ljava/lang/String;)Ljava/lang/StringBuilder; java/lang/Class getName ()Ljava/lang/String; toString org/junit/Assert
assertNotNull '(Ljava/lang/String;Ljava/lang/Object;)V java/lang/Long longValue ()J java/util/concurrent/TimeUnit MILLISECONDS (I)V createFilter 5(Ljava/lang/String;)Lorg/jboss/gravia/runtime/Filter;
(Lorg/jboss/gravia/runtime/ModuleContext;Ljava/lang/Class;Lorg/jboss/gravia/runtime/ServiceTrackerCustomizer;Lorg/jboss/gravia/runtime/Filter;Ljava/util/concurrent/atomic/AtomicReference;Lorg/jboss/gravia/runtime/ModuleContext;Ljava/util/concurrent/CountDownLatch;)V open await #(JLjava/util/concurrent/TimeUnit;)Z -(Ljava/lang/Object;)Ljava/lang/StringBuilder; (Ljava/lang/String;)V get ()Ljava/lang/Object; close valueOf (J)Ljava/lang/Long; 1 ' ( + , - . / 3 *? ? 0
! # 1 2 3 4 5 / ? !? ? L+*? M,?
+,? ? ? 0 &