de.tsl2.nano.core.AppLoader.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tsl2.nano.h5 Show documentation
Show all versions of tsl2.nano.h5 Show documentation
TSL2 Framework Html5 Extensions (WebServer, Html5Presentation, RuleCover, BeanConfigurator, LogicTable-Sheet, Expression-Descriptors for Actions, Rules, URLs, Queries)
???? =*
java/lang/Object ()V java/util/LinkedHashMap
usage
getClass ()Ljava/lang/Class;
java/lang/Class
getSimpleName ()Ljava/lang/String; makeConcatWithConstants &(Ljava/lang/String;)Ljava/lang/String;
java/util/Map put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
" # $ % & java/lang/System setProperty 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; ( create
* + , - . de/tsl2/nano/core/AppLoader callENV 9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/Object; 0 de.tsl2.nano.core.ENV
2 3 4 5 6 de/tsl2/nano/core/cls/BeanClass createBeanClass 5(Ljava/lang/String;)Lde/tsl2/nano/core/cls/BeanClass; 8 java/lang/String
: ; < = > de/tsl2/nano/core/Argumentator getArgumentClasses 8(Ljava/lang/Class;[Ljava/lang/Object;)[Ljava/lang/Class;
2 @ A B
callMethod ](Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Class;[Ljava/lang/Object;)Ljava/lang/Object; " D E F out Ljava/io/PrintStream; H ?AppLoader needs at least one parameter!
syntax: AppLoader [environment-dir(default:'.' + main-class + '.environment')] [method-if-not-main] [args...]Tip: it is possible to add 'Main-Arguments' to the META-INF/MANIFEST file.
J K L M N java/io/PrintStream println (Ljava/lang/String;)V
* P Q getFileSystemPrefix S .
U V W X Y !de/tsl2/nano/core/util/StringUtil substring K(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)Ljava/lang/String;
7 [ \ toLowerCase ^ & ` main b /
7 d e f
startsWith (Ljava/lang/String;)Z h :
7 j k l contains (Ljava/lang/CharSequence;)Z
" n o p arraycopy *(Ljava/lang/Object;ILjava/lang/Object;II)V
* r s t start L(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)V
* v w x
isHelpRequest ([Ljava/lang/String;)Z
* z { N printHelp
* } ~ getDefaultEnvPath ^
? ? ? ? ? de/tsl2/nano/core/util/FileUtil
getURIFile "(Ljava/lang/String;)Ljava/io/File;
? ? ? ? java/io/File getPath
? ? ? ? N de/tsl2/nano/core/log/LogFactory
setLogFile * ? ? ? LOG Lorg/apache/commons/logging/Log;
U ? ? ? toString '(Ljava/lang/Object;I)Ljava/lang/String; ? ? \(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; ? ? ? ? ? org/apache/commons/logging/Log info (Ljava/lang/Object;)V
* ? ?
noSecurity
* ? ? useUTF8
? ? ? ? userDirFile
? ? ? ? mkdirs ()Z
* ? ? ? provideClassloader F(Ljava/lang/String;)Lde/tsl2/nano/core/classloader/NetworkClassLoader;
2 ? ? getName
* ? ? ? getManual ()Ljava/util/Map;
: ? ? 7(Ljava/lang/String;Ljava/util/Map;[Ljava/lang/String;)V
* ? ? ? createEnvironment F(Ljava/lang/String;Lde/tsl2/nano/core/Argumentator;)Ljava/lang/Object; ? de/tsl2/nano/core/ENV
? ? get ? jar.checker.deltatime
? ? ? ? ? java/lang/Integer valueOf (I)Ljava/lang/Integer;
? ? ? ? intValue ()I
? ? ? ? ? 0de/tsl2/nano/core/classloader/NetworkClassLoader startPathChecker (Ljava/lang/String;J)V ? apploader-clean ? de/tsl2/nano/core/AppLoader$1
? ? ? (Lde/tsl2/nano/core/AppLoader;)V
? ? ? ? ? %de/tsl2/nano/core/util/ConcurrentUtil startDaemon :(Ljava/lang/String;Ljava/lang/Runnable;)Ljava/lang/Thread; ? [Ljava/lang/String; ? java/lang/Throwable
? ? ? printStackTrace ? ? ? ? error ? UTF-8
* ? ? N
useCharset ? Cp1252 ?
file.encoding ? java/nio/charset/Charset ? defaultCharset
? ? ? getDeclaredField -(Ljava/lang/String;)Ljava/lang/reflect/Field;
java/lang/reflect/Field
setAccessible (Z)V
set '(Ljava/lang/Object;Ljava/lang/Object;)V java/lang/Exception "
F err
? .*(\?|help|man)
7 f matches
: printManual :(Ljava/lang/String;Ljava/util/Map;Ljava/io/PrintStream;I)V apploader.args
" getProperty" ,
7$%& split '(Ljava/lang/String;)[Ljava/lang/String;
*()* getArgumentsFromManifest ()[Ljava/lang/String;
,-./0 %de/tsl2/nano/core/util/CollectionUtil concat :(Ljava/lang/Class;[[Ljava/lang/Object;)[Ljava/lang/Object;
*
*3 s4 ([Ljava/lang/String;)V
:678 readManifest ()Ljava/util/jar/Attributes;
*:;8 getManifestAttributes= Main-Arguments
?@AB java/util/jar/Attributes getValueD \s
FGHIJ java/lang/Thread
currentThread ()Ljava/lang/Thread;
FLMN getContextClassLoader ()Ljava/lang/ClassLoader;P java.class.pathR javax.management.builder.initial ?TUV
pathSeparator Ljava/lang/String;
*XY ? isDalvik[
standalone
?] ^ ,(Ljava/lang/ClassLoader;Ljava/lang/String;)V
?`a N setEnvironment c d +(Ljava/lang/ClassLoader;)Ljava/lang/String;
?fg N addFilei nano.apploader.isnestedjar
klm ?n java/lang/Boolean (Z)Ljava/lang/String;
?q N
?st N addLibraryPath
v w ](Ljava/lang/ClassLoader;Lde/tsl2/nano/core/classloader/NetworkClassLoader;)Ljava/lang/String;
Fyz{ setContextClassLoader (Ljava/lang/ClassLoader;)V}
env.user.home user.home? android.sdcard.path? /mnt/sdcard/
"? &
*?? ? isUnix? ? java.specification.version?
java.compiler
*?? ? hasCompiler? java.vm.specification.name? Dalvik? java.vm.vendor? Oracle? java.vm.name? OpenJDK
*?? ? isWindows? os.name? windows ???? pathSeparatorChar C
k?? f
getBoolean? Aresetting security manager and policies to enable all-permissions? de/tsl2/nano/core/AppLoader$2
?
????? java/security/Policy setPolicy (Ljava/security/Policy;)V
"??? setSecurityManager (Ljava/lang/SecurityManager;)V
???? getLog 3(Ljava/lang/Class;)Lorg/apache/commons/logging/Log; KEY_ISNESTEDJAR
ConstantValue Code LineNumberTable LocalVariableTable this Lde/tsl2/nano/core/AppLoader; map Ljava/util/Map; LocalVariableTypeTable 5Ljava/util/Map; Signature 7()Ljava/util/Map; environment args Lde/tsl2/nano/core/Argumentator; fctName [Ljava/lang/Object; mainclass
mainmethod nargs processed I
StackMapTable ((Ljava/lang/String;[Ljava/lang/String;)V networkClassLoader 2Lde/tsl2/nano/core/classloader/NetworkClassLoader; bc !Lde/tsl2/nano/core/cls/BeanClass; deltaTime ex Ljava/lang/Throwable; $Lde/tsl2/nano/core/cls/BeanClass<*>; useCp1252 charset Ljava/lang/reflect/Field; e Ljava/lang/Exception; encoding name sa sargs argss contextClassLoader Ljava/lang/ClassLoader; classPath mngt cl nestedLoader binDir Ljava/io/File;? java/lang/ClassLoader
extendArgs ;([Ljava/lang/String;[Ljava/lang/String;)[Ljava/lang/String; preArgs newArgs getJavaVersion isJRE isJdkOracle isOpenJDK isUnixFS isNestingJar policy Ljava/security/Policy;
SourceFile AppLoader.java NestMembers BootstrapMethods
$java/lang/invoke/StringConcatFactory ?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite;
7 [environment name or path] {} [arguments] / . /apploader.log ?
#############################################################
AppLoader preparing launch for:
mainclass :
mainmethod:
args :
environment:
#############################################################
@continuing after error, followed by html rendering problems... ..environment discarding boot classloader /generated-bin! -resetting current thread classloader with # (couldn't set all permissions. failure: InnerClasses& %java/lang/invoke/MethodHandles$Lookup( java/lang/invoke/MethodHandles Lookup ! * ? ? ?V ? h ? / *? ? ? E? ?? ? ? ? m ? Y? L+
*? ? ? ? W+? ? Q R S? ?? ?? ? ?? ? ? ? ? ? [ ++? ? !W'? Y+S? )? ?
] _? ?? ?V ?? ? - . ? N /? 1*7+? 9+? ?? ? c
e c? ?V ?? s4 ? ? ?+?? ? CG? I?+?? *? O+2R? T? Z? ] :+2M_N? 7:? p6+2a? c? +2g? i? +2:+?2M? ? O+2R? T? Z? ] :+2M+??
+?2? _N+?d? 7:+?? m*,-? q? ? N s t
y z | + } / ~ 2 ; ? > ? T ? Y ? d ? { ? ? ? ? ? ? ? ? ? ?? ?
/ ?V 2 ?V + ?V 8 ? ? a ?V Y ?V > j?? ??? ?? ? 4?V ? !?V { 8?V ? ? ? ? K ,? * ? ? * ? 7 7 A 7? * ? 7 7 7 ? s? ? K *+,? q? ?
? ?? ?? ?V ? ? s t ? \ '*? u? *+? y-? 9?? %2N?d? 7:?? m:? ? O*+? |? N-? ?? ?N,? _M-? ? ? ?? ?+, ȸ ?-? ? ? ? ? ?? ?-? ?? ?W*-? ?:+? 1:*-? :Y? ?*? ?? ?? ?W?? ø 1?? Y7SYS? Y?SY? ?S? ?? ɶ ?6-?? ?ػ ?Y*? ܸ ?W,? Y?S? YS? ?W? :? ? ?? ? ? ? ? ? " ? ? ? ? ? ? ' ? 3 ? 7 ? : ? H ? P ? T ? W ? ` ? j ? s ? x ? { ? ~ ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?&