public class io.dropwizard.cli.ServerCommand<T extends io.dropwizard.Configuration> extends io.dropwizard.cli.EnvironmentCommand<T>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.dropwizard.cli.ServerCommand
super_class: io.dropwizard.cli.EnvironmentCommand
{
private static final org.slf4j.Logger LOGGER;
descriptor: Lorg/slf4j/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final java.lang.Class<T> configurationClass;
descriptor: Ljava/lang/Class;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/lang/Class<TT;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lio/dropwizard/cli/ServerCommand;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
putstatic io.dropwizard.cli.ServerCommand.LOGGER:Lorg/slf4j/Logger;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(io.dropwizard.Application<T>);
descriptor: (Lio/dropwizard/Application;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
ldc "server"
ldc "Runs the Dropwizard application as an HTTP server"
invokespecial io.dropwizard.cli.ServerCommand.<init>:(Lio/dropwizard/Application;Ljava/lang/String;Ljava/lang/String;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/dropwizard/cli/ServerCommand<TT;>;
0 2 1 application Lio/dropwizard/Application<TT;>;
Signature: (Lio/dropwizard/Application<TT;>;)V
MethodParameters:
Name Flags
application
protected void <init>(io.dropwizard.Application<T>, java.lang.String, java.lang.String);
descriptor: (Lio/dropwizard/Application;Ljava/lang/String;Ljava/lang/String;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
aload 2
aload 3
invokespecial io.dropwizard.cli.EnvironmentCommand.<init>:(Lio/dropwizard/Application;Ljava/lang/String;Ljava/lang/String;)V
1: aload 0
aload 1
invokevirtual io.dropwizard.Application.getConfigurationClass:()Ljava/lang/Class;
putfield io.dropwizard.cli.ServerCommand.configurationClass:Ljava/lang/Class;
2: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/dropwizard/cli/ServerCommand<TT;>;
0 3 1 application Lio/dropwizard/Application<TT;>;
0 3 2 name Ljava/lang/String;
0 3 3 description Ljava/lang/String;
Signature: (Lio/dropwizard/Application<TT;>;Ljava/lang/String;Ljava/lang/String;)V
MethodParameters:
Name Flags
application final
name final
description final
protected java.lang.Class<T> getConfigurationClass();
descriptor: ()Ljava/lang/Class;
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.dropwizard.cli.ServerCommand.configurationClass:Ljava/lang/Class;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/cli/ServerCommand<TT;>;
Signature: ()Ljava/lang/Class<TT;>;
protected void run(io.dropwizard.setup.Environment, net.sourceforge.argparse4j.inf.Namespace, );
descriptor: (Lio/dropwizard/setup/Environment;Lnet/sourceforge/argparse4j/inf/Namespace;Lio/dropwizard/Configuration;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 3
invokevirtual io.dropwizard.Configuration.getServerFactory:()Lio/dropwizard/server/ServerFactory;
aload 1
invokeinterface io.dropwizard.server.ServerFactory.build:(Lio/dropwizard/setup/Environment;)Lorg/eclipse/jetty/server/Server;
astore 4
start local 4 1: aload 4
new io.dropwizard.cli.ServerCommand$LifeCycleListener
dup
aload 0
invokespecial io.dropwizard.cli.ServerCommand$LifeCycleListener.<init>:(Lio/dropwizard/cli/ServerCommand;)V
invokevirtual org.eclipse.jetty.server.Server.addLifeCycleListener:(Lorg/eclipse/jetty/util/component/LifeCycle$Listener;)V
2: aload 0
invokevirtual io.dropwizard.cli.ServerCommand.cleanupAsynchronously:()V
3: aload 4
invokevirtual org.eclipse.jetty.server.Server.start:()V
4: goto 16
StackMap locals: io.dropwizard.cli.ServerCommand io.dropwizard.setup.Environment net.sourceforge.argparse4j.inf.Namespace io.dropwizard.Configuration org.eclipse.jetty.server.Server
StackMap stack: java.lang.Exception
5: astore 5
start local 5 6: getstatic io.dropwizard.cli.ServerCommand.LOGGER:Lorg/slf4j/Logger;
ldc "Unable to start server, shutting down"
aload 5
invokeinterface org.slf4j.Logger.error:(Ljava/lang/String;Ljava/lang/Throwable;)V
7: aload 4
invokevirtual org.eclipse.jetty.server.Server.stop:()V
8: goto 11
StackMap locals: io.dropwizard.cli.ServerCommand io.dropwizard.setup.Environment net.sourceforge.argparse4j.inf.Namespace io.dropwizard.Configuration org.eclipse.jetty.server.Server java.lang.Exception
StackMap stack: java.lang.Exception
9: astore 6
start local 6 10: getstatic io.dropwizard.cli.ServerCommand.LOGGER:Lorg/slf4j/Logger;
ldc "Failure during stop server"
aload 6
invokeinterface org.slf4j.Logger.warn:(Ljava/lang/String;Ljava/lang/Throwable;)V
end local 6 11: StackMap locals:
StackMap stack:
aload 0
invokevirtual io.dropwizard.cli.ServerCommand.cleanup:()V
12: goto 15
StackMap locals:
StackMap stack: java.lang.Exception
13: astore 6
start local 6 14: getstatic io.dropwizard.cli.ServerCommand.LOGGER:Lorg/slf4j/Logger;
ldc "Failure during cleanup"
aload 6
invokeinterface org.slf4j.Logger.warn:(Ljava/lang/String;Ljava/lang/Throwable;)V
end local 6 15: StackMap locals:
StackMap stack:
aload 5
athrow
end local 5 16: StackMap locals:
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lio/dropwizard/cli/ServerCommand<TT;>;
0 17 1 environment Lio/dropwizard/setup/Environment;
0 17 2 namespace Lnet/sourceforge/argparse4j/inf/Namespace;
0 17 3 configuration TT;
1 17 4 server Lorg/eclipse/jetty/server/Server;
6 16 5 e Ljava/lang/Exception;
10 11 6 e1 Ljava/lang/Exception;
14 15 6 e2 Ljava/lang/Exception;
Exception table:
from to target type
1 4 5 Class java.lang.Exception
7 8 9 Class java.lang.Exception
11 12 13 Class java.lang.Exception
Exceptions:
throws java.lang.Exception
Signature: (Lio/dropwizard/setup/Environment;Lnet/sourceforge/argparse4j/inf/Namespace;TT;)V
MethodParameters:
Name Flags
environment
namespace
configuration
}
Signature: <T:Lio/dropwizard/Configuration;>Lio/dropwizard/cli/EnvironmentCommand<TT;>;
SourceFile: "ServerCommand.java"
NestMembers:
io.dropwizard.cli.ServerCommand$LifeCycleListener
InnerClasses:
private LifeCycleListener = io.dropwizard.cli.ServerCommand$LifeCycleListener of io.dropwizard.cli.ServerCommand
public abstract Listener = org.eclipse.jetty.util.component.LifeCycle$Listener of org.eclipse.jetty.util.component.LifeCycle