
org.apache.sling.jcr.registration.AbstractRegistrationSupport.class Maven / Gradle / Ivy
???? 1 ?
~
~ 9 ? 9 ? ? 9 ? 9 ? 9 ? ? ? ? ? ?
~
? ?
?
?
? ?
? ? c " ? ?
? ?
9 ?
9 ? ? ? ? ? ? ? ? ? ? ? ? ?
9 ? ? ? ? ? ?
? ?
9 ? ? ?
9 ?
9 ?
9 ? ? ? ? ?
? ? ? ? ? ? ? ? ? ? ? ?
9 ? ? REPOSITORY_REGISTRATION_NAME Ljava/lang/String;
ConstantValue log !Lorg/osgi/service/log/LogService; componentContext -Lorg/osgi/service/component/ComponentContext; repositoryRegistrationBacklog Ljava/util/Map; Signature HLjava/util/Map; registeredRepositories 5Ljava/util/Map; registryLock Ljava/lang/Object; ()V Code LineNumberTable LocalVariableTable this ?Lorg/apache/sling/jcr/registration/AbstractRegistrationSupport;
doActivate ()Z doDeactivate bindRepository <(Ljava/lang/String;Ljavax/jcr/Repository;)Ljava/lang/Object; unbindRepository '(Ljava/lang/String;Ljava/lang/Object;)V getComponentContext /()Lorg/osgi/service/component/ComponentContext; +(ILjava/lang/String;Ljava/lang/Throwable;)V level I message t Ljava/lang/Throwable; getName 9(Lorg/osgi/framework/ServiceReference;)Ljava/lang/String; reference %Lorg/osgi/framework/ServiceReference; name activate 0(Lorg/osgi/service/component/ComponentContext;)V entry Entry InnerClasses Ljava/util/Map$Entry; ri Ljava/util/Iterator; LocalVariableTypeTable NLjava/util/Map$Entry; dLjava/util/Iterator;>;
deactivate context ;Ljava/util/Map$Entry; QLjava/util/Iterator;>; ((Lorg/osgi/framework/ServiceReference;)V data bindLog $(Lorg/osgi/service/log/LogService;)V unbindLog bindRepositoryInternal :(Ljava/lang/String;Lorg/osgi/framework/ServiceReference;)V
repository Ljavax/jcr/Repository;
SourceFile AbstractRegistrationSupport.java I J java/util/HashMap A B E B java/lang/Object G H ? @ = > ? = Y ? ? ? java/lang/StringBuilder ? ? - ? ? ? ? ? ? ? ? ? ? ? ? java/lang/String ? ? 3registerRepository: Repository not to be registered = Y P Q ? ? ? ? ? ? ? ? Q ? ? java/util/Map$Entry ? ? ? ? #org/osgi/framework/ServiceReference x y ? J ? ? ? component.name ? ? ? W X ? ? U V R J _ ` ? ? Service
service.id ? ? & has no name property, not registering ? ? ? ? ? ? ? , has no name property, nothing to unregister ? ? javax/jcr/Repository S T =org/apache/sling/jcr/registration/AbstractRegistrationSupport org/osgi/service/log/LogService java/lang/System err Ljava/io/PrintStream; append (I)Ljava/lang/StringBuilder; -(Ljava/lang/String;)Ljava/lang/StringBuilder; toString ()Ljava/lang/String; java/io/PrintStream print (Ljava/lang/String;)V java/lang/Throwable printStackTrace (Ljava/io/PrintStream;)V getProperty &(Ljava/lang/String;)Ljava/lang/Object; length ()I
java/util/Map entrySet ()Ljava/util/Set;
java/util/Set iterator ()Ljava/util/Iterator; java/util/Iterator hasNext next ()Ljava/lang/Object; getKey getValue remove +org/osgi/service/component/ComponentContext
getProperties ()Ljava/util/Dictionary; java/util/Dictionary get &(Ljava/lang/Object;)Ljava/lang/Object; disableComponent put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; -(Ljava/lang/Object;)Ljava/lang/StringBuilder; getBundleContext $()Lorg/osgi/framework/BundleContext; org/osgi/framework/BundleContext ungetService ((Lorg/osgi/framework/ServiceReference;)Z
getService 9(Lorg/osgi/framework/ServiceReference;)Ljava/lang/Object;! 9 : ; <