public class io.dropwizard.views.ViewBundle<T> implements io.dropwizard.ConfiguredBundle<T>, io.dropwizard.views.ViewConfigurable<T>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.dropwizard.views.ViewBundle
super_class: java.lang.Object
{
private final java.lang.Iterable<io.dropwizard.views.ViewRenderer> viewRenderers;
descriptor: Ljava/lang/Iterable;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/lang/Iterable<Lio/dropwizard/views/ViewRenderer;>;
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ldc Lio/dropwizard/views/ViewRenderer;
invokestatic java.util.ServiceLoader.load:(Ljava/lang/Class;)Ljava/util/ServiceLoader;
invokespecial io.dropwizard.views.ViewBundle.<init>:(Ljava/lang/Iterable;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/dropwizard/views/ViewBundle<TT;>;
public void <init>(java.lang.Iterable<io.dropwizard.views.ViewRenderer>);
descriptor: (Ljava/lang/Iterable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
invokestatic io.dropwizard.util.Sets.of:(Ljava/lang/Iterable;)Ljava/util/Set;
putfield io.dropwizard.views.ViewBundle.viewRenderers:Ljava/lang/Iterable;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/dropwizard/views/ViewBundle<TT;>;
0 3 1 viewRenderers Ljava/lang/Iterable<Lio/dropwizard/views/ViewRenderer;>;
Signature: (Ljava/lang/Iterable<Lio/dropwizard/views/ViewRenderer;>;)V
MethodParameters:
Name Flags
viewRenderers
public java.util.Map<java.lang.String, java.util.Map<java.lang.String, java.lang.String>> getViewConfiguration(T);
descriptor: (Ljava/lang/Object;)Ljava/util/Map;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: invokestatic java.util.Collections.emptyMap:()Ljava/util/Map;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/views/ViewBundle<TT;>;
0 1 1 configuration TT;
Signature: (TT;)Ljava/util/Map<Ljava/lang/String;Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;>;
MethodParameters:
Name Flags
configuration
public void run(T, io.dropwizard.setup.Environment);
descriptor: (Ljava/lang/Object;Lio/dropwizard/setup/Environment;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokevirtual io.dropwizard.views.ViewBundle.getViewConfiguration:(Ljava/lang/Object;)Ljava/util/Map;
astore 3
start local 3 1: aload 0
getfield io.dropwizard.views.ViewBundle.viewRenderers:Ljava/lang/Iterable;
invokeinterface java.lang.Iterable.iterator:()Ljava/util/Iterator;
astore 5
goto 7
StackMap locals: io.dropwizard.views.ViewBundle java.lang.Object io.dropwizard.setup.Environment java.util.Map top java.util.Iterator
StackMap stack:
2: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast io.dropwizard.views.ViewRenderer
astore 4
start local 4 3: aload 3
aload 4
invokeinterface io.dropwizard.views.ViewRenderer.getConfigurationKey:()Ljava/lang/String;
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.Map
astore 6
start local 6 4: aload 4
aload 6
ifnonnull 5
invokestatic java.util.Collections.emptyMap:()Ljava/util/Map;
goto 6
StackMap locals: io.dropwizard.views.ViewBundle java.lang.Object io.dropwizard.setup.Environment java.util.Map io.dropwizard.views.ViewRenderer java.util.Iterator java.util.Map
StackMap stack: io.dropwizard.views.ViewRenderer
5: aload 6
StackMap locals: io.dropwizard.views.ViewBundle java.lang.Object io.dropwizard.setup.Environment java.util.Map io.dropwizard.views.ViewRenderer java.util.Iterator java.util.Map
StackMap stack: io.dropwizard.views.ViewRenderer java.util.Map
6: invokeinterface io.dropwizard.views.ViewRenderer.configure:(Ljava/util/Map;)V
end local 6 end local 4 7: StackMap locals: io.dropwizard.views.ViewBundle java.lang.Object io.dropwizard.setup.Environment java.util.Map top java.util.Iterator
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
8: aload 2
invokevirtual io.dropwizard.setup.Environment.jersey:()Lio/dropwizard/jersey/setup/JerseyEnvironment;
new io.dropwizard.views.ViewMessageBodyWriter
dup
aload 2
invokevirtual io.dropwizard.setup.Environment.metrics:()Lcom/codahale/metrics/MetricRegistry;
aload 0
getfield io.dropwizard.views.ViewBundle.viewRenderers:Ljava/lang/Iterable;
invokespecial io.dropwizard.views.ViewMessageBodyWriter.<init>:(Lcom/codahale/metrics/MetricRegistry;Ljava/lang/Iterable;)V
invokevirtual io.dropwizard.jersey.setup.JerseyEnvironment.register:(Ljava/lang/Object;)V
9: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lio/dropwizard/views/ViewBundle<TT;>;
0 10 1 configuration TT;
0 10 2 environment Lio/dropwizard/setup/Environment;
1 10 3 options Ljava/util/Map<Ljava/lang/String;Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;>;
3 7 4 viewRenderer Lio/dropwizard/views/ViewRenderer;
4 7 6 viewOptions Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
Exceptions:
throws java.lang.Exception
Signature: (TT;Lio/dropwizard/setup/Environment;)V
MethodParameters:
Name Flags
configuration
environment
}
Signature: <T:Ljava/lang/Object;>Ljava/lang/Object;Lio/dropwizard/ConfiguredBundle<TT;>;Lio/dropwizard/views/ViewConfigurable<TT;>;
SourceFile: "ViewBundle.java"