All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.lonelystorm.air.asset.services.impl.CompilerManagerImpl.class Maven / Gradle / Ivy

Go to download

The LonelyStorm Air Asset library provides support to be able to compile SASS files at runtime.

There is a newer version: 0.1.8
Show newest version
????3R;com/lonelystorm/air/asset/services/impl/CompilerManagerImpljava/lang/Object2com/lonelystorm/air/asset/services/CompilerManagerCompilerManagerImpl.java,Lorg/apache/felix/scr/annotations/Component;*Lorg/apache/felix/scr/annotations/Service;Gcom/lonelystorm/air/asset/services/impl/CompilerManagerImpl$CompileTask
CompileTask	compilersLjava/util/Map;PLjava/util/Map;,Lorg/apache/felix/scr/annotations/Reference;referenceInterface-Lcom/lonelystorm/air/asset/services/Compiler;policy2Lorg/apache/felix/scr/annotations/ReferencePolicy;DYNAMICcardinality7Lorg/apache/felix/scr/annotations/ReferenceCardinality;OPTIONAL_MULTIPLEbindbindCompilerunbindunbindCompilerresourceResolverFactory7Lorg/apache/sling/api/resource/ResourceResolverFactory;cacheManager1Lcom/lonelystorm/air/asset/services/CacheManager;libraryResolver4Lcom/lonelystorm/air/asset/services/LibraryResolver;pool;>;()V()
*java/util/TreeMap,
-*java/util/Collections/synchronizedMap (Ljava/util/Map;)Ljava/util/Map;12
03
	5this=Lcom/lonelystorm/air/asset/services/impl/CompilerManagerImpl;activate0(Lorg/osgi/service/component/ComponentContext;)V+Lorg/apache/felix/scr/annotations/Activate;java/lang/Runtime<
getRuntime()Ljava/lang/Runtime;>?
=@availableProcessors()IBC
=Djava/util/concurrent/ExecutorsFnewFixedThreadPool)(I)Ljava/util/concurrent/ExecutorService;HI
GJ/com/google/common/util/concurrent/MoreExecutorsLlisteningDecoratord(Ljava/util/concurrent/ExecutorService;)Lcom/google/common/util/concurrent/ListeningExecutorService;NO
MP#$	R#com/google/common/collect/HashBiMapTcreate((I)Lcom/google/common/collect/HashBiMap;VW
UXcom/google/common/collect/MapsZsynchronizedBiMapD(Lcom/google/common/collect/BiMap;)Lcom/google/common/collect/BiMap;\]
[^%&	`componentContext-Lorg/osgi/service/component/ComponentContext;
deactivate-Lorg/apache/felix/scr/annotations/Deactivate;:com/google/common/util/concurrent/ListeningExecutorServicefshutdownh)gi0(Lcom/lonelystorm/air/asset/services/Compiler;)VgetClass()Ljava/lang/Class;lm
njava/lang/ClasspgetName()Ljava/lang/String;rs
qt
java/util/Mapvput8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;xywzcompilernameLjava/lang/String;remove&(Ljava/lang/Object;)Ljava/lang/Object;?w?compile<(Lcom/lonelystorm/air/asset/models/Asset;)Ljava/lang/String;6com/lonelystorm/air/asset/exceptions/CompilerException?java/lang/InterruptedException?'java/util/concurrent/ExecutionException?java/lang/StringBuilder?
?*java/util/ArrayList?
?*;(Lcom/lonelystorm/air/asset/models/Asset;Ljava/util/List;)V??
?)com/google/common/util/concurrent/Futures?	allAsListJ(Ljava/lang/Iterable;)Lcom/google/common/util/concurrent/ListenableFuture;??
??2com/google/common/util/concurrent/ListenableFuture?get()Ljava/lang/Object;????java/util/List?iterator()Ljava/util/Iterator;????java/util/Iterator?hasNext()Z????next????com/google/common/collect/BiMap?inverse#()Lcom/google/common/collect/BiMap;????????java/lang/String? 	?/com/lonelystorm/air/asset/services/CacheManager?cache'(Ljava/lang/String;Ljava/lang/String;)V????append-(Ljava/lang/String;)Ljava/lang/StringBuilder;??
????java/lang/Exception?getCause()Ljava/lang/Throwable;??
??toString?s
??pathresultfutureHLcom/google/common/util/concurrent/ListenableFuture;4Lcom/google/common/util/concurrent/ListenableFuture;eLjava/lang/Exception;asset(Lcom/lonelystorm/air/asset/models/Asset;compiledLjava/lang/StringBuilder;futuresZLjava/util/List;>;Ljava/util/List;allZLcom/google/common/util/concurrent/ListenableFuture;>;&com/lonelystorm/air/asset/models/Asset?java/lang/Throwable?-com/lonelystorm/air/asset/models/AssetLibrary?getEmbed()[Ljava/lang/String;??
??!"	?2com/lonelystorm/air/asset/services/LibraryResolver?findLibrariesByCategory$(Ljava/lang/String;)Ljava/util/List;????+com/lonelystorm/air/asset/models/AssetTheme?
??findThemesByTheme????
getSources()Ljava/util/Set;??
??
java/util/Set???&(Ljava/lang/String;)Ljava/lang/String;????containsKey(Ljava/lang/Object;)Z?p(Lcom/lonelystorm/air/asset/models/Asset;Ljava/lang/String;)Lcom/google/common/util/concurrent/ListenableFuture;?
immediateFutureH(Ljava/lang/Object;)Lcom/google/common/util/concurrent/ListenableFuture;	
?
?zadd
?lib/Lcom/lonelystorm/air/asset/models/AssetLibrary;libsALjava/util/List;embedfoldertheme-Lcom/lonelystorm/air/asset/models/AssetTheme;themes?Ljava/util/List;file[Ljava/lang/String;.com/lonelystorm/air/asset/util/CompilerSession	K(Lorg/apache/sling/api/resource/ResourceResolverFactory;Ljava/lang/Class;)V(!
"?
$values()Ljava/util/Collection;&'w(java/util/Collection*+?+com/lonelystorm/air/asset/services/Compiler-supports=(Lcom/lonelystorm/air/asset/models/Asset;Ljava/lang/String;)Z/0.1|(Lcom/lonelystorm/air/asset/services/Compiler;Lcom/lonelystorm/air/asset/models/Asset;Ljava/lang/String;Ljava/lang/String;)V(3
4submitU(Ljava/util/concurrent/Callable;)Lcom/google/common/util/concurrent/ListenableFuture;67g8session0Lcom/lonelystorm/air/asset/util/CompilerSession;sourcebindResourceResolverFactory:(Lorg/apache/sling/api/resource/ResourceResolverFactory;)VunbindResourceResolverFactorybindCacheManager4(Lcom/lonelystorm/air/asset/services/CacheManager;)VunbindCacheManagerbindLibraryResolver7(Lcom/lonelystorm/air/asset/services/LibraryResolver;)VunbindLibraryResolver	SignatureRuntimeInvisibleAnnotationsCodeLocalVariableTableLineNumberTable
StackMapTableLocalVariableTypeTable
Exceptions?(Lcom/lonelystorm/air/asset/models/Asset;Ljava/util/List;>;)V?(Lcom/lonelystorm/air/asset/models/Asset;Ljava/lang/String;)Lcom/google/common/util/concurrent/ListenableFuture;
SourceFileInnerClasses!
FG#ceessG G!"G#$%&F'()HI*?+*?-Y?.?4?6?I78J)+2?9:H[*?A?Eh?K?Q?S*?Y?_?a?I78bcJCDEG;d:Hh*?S?*?S?j*?S*?a?I78bcJIJMNOKGekH[+?o?uM*?6,+?{W?I 78|
}~JRSTkHZ+?o?uM*?6,??W?I 78|}~JWXY??HTx??Y??M??Y??N*+-??-??:??W-??:???G????:*?a??????:????:*????,??W???-??:???9????:*?aY:?*?a????Wç:	?	???ç?:??????????-??:???9????:*?aY:?*?a????Wç:
?
???çP:-??:???9????:
*?aY:?*?a??
??Wç:??????,?ΰ??????z??z??z&??&Nbeeje&(&IzW ?~c?~B5???'??????'??F'??
x78x??p??h??\??L>B5???'???'??F'??
h??\??J? `aceg$iBjWkcmpnwozu?v?w?x?y?z?p?q?r?u?vwx y#z&uFvNw_xmys|K&?,??????M?4????????????????????????4????????????????	
???????4????????????????M???H?m+??c+??N-??:?66?F2:*????:??:		???	????:
*
,?????????g+??`+??N-??:?66?F2:*????:??:		???	????:
*
,????????+????N-????-????::*???:*?aY:?*?a??*?a????:?.?*+?:?
?:?*?a?Wç:???,?W??l?PSSXSI?T
5)?(6~X?
?)??6~sX?}???p?~??~m78m??m??L*5)?)?}??m??J? ???(?5?T?[?^?d?n?s?????????????????????"?'?3?:???M?[?`?i?l?K??????#????????????#???????	??L??????????????E?
????FN?H?j?Y*? *?o?#N-,?%:?O*?6?)?,:???5???.:+,?2?*?S?Y+,?5?9?????I>B#|j78j??j~Z:;S<~J"????B?N?e?h?K?,???8.?FO=>H*+? ??>H#*? +?*? ?K
@AH*+???BAH#*??+?*???K
CDH*+??EDH#*??+?*??K
PQ

G
	




© 2015 - 2024 Weber Informatics LLC | Privacy Policy