ContextBoundUnmarshallerProvider Class — netty Architecture
Architecture documentation for the ContextBoundUnmarshallerProvider class in ContextBoundUnmarshallerProvider.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 3d99c7e1_2e19_5120_33e1_a261a722dceb["ContextBoundUnmarshallerProvider"] 06c4e53e_b975_1022_a129_27b8bf8e1ed7["ContextBoundUnmarshallerProvider.java"] 3d99c7e1_2e19_5120_33e1_a261a722dceb -->|defined in| 06c4e53e_b975_1022_a129_27b8bf8e1ed7 5d303fc7_fe49_adbb_6bb5_6f99b6f847a5["ContextBoundUnmarshallerProvider()"] 3d99c7e1_2e19_5120_33e1_a261a722dceb -->|method| 5d303fc7_fe49_adbb_6bb5_6f99b6f847a5 14e11a15_4466_112e_4fca_ee55147d76a6["Unmarshaller()"] 3d99c7e1_2e19_5120_33e1_a261a722dceb -->|method| 14e11a15_4466_112e_4fca_ee55147d76a6
Relationship Graph
Source Code
codec-marshalling/src/main/java/io/netty/handler/codec/marshalling/ContextBoundUnmarshallerProvider.java lines 35–54
public class ContextBoundUnmarshallerProvider extends DefaultUnmarshallerProvider {
private static final AttributeKey<Unmarshaller> UNMARSHALLER = AttributeKey.valueOf(
ContextBoundUnmarshallerProvider.class, "UNMARSHALLER");
public ContextBoundUnmarshallerProvider(MarshallerFactory factory, MarshallingConfiguration config) {
super(factory, config);
}
@Override
public Unmarshaller getUnmarshaller(ChannelHandlerContext ctx) throws Exception {
Attribute<Unmarshaller> attr = ctx.channel().attr(UNMARSHALLER);
Unmarshaller unmarshaller = attr.get();
if (unmarshaller == null) {
unmarshaller = super.getUnmarshaller(ctx);
attr.set(unmarshaller);
}
return unmarshaller;
}
}
Source
Frequently Asked Questions
What is the ContextBoundUnmarshallerProvider class?
ContextBoundUnmarshallerProvider is a class in the netty codebase, defined in codec-marshalling/src/main/java/io/netty/handler/codec/marshalling/ContextBoundUnmarshallerProvider.java.
Where is ContextBoundUnmarshallerProvider defined?
ContextBoundUnmarshallerProvider is defined in codec-marshalling/src/main/java/io/netty/handler/codec/marshalling/ContextBoundUnmarshallerProvider.java at line 35.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free