For migration purposes we need to not leak the implementation
class from create methods. Fix them to return just the interface.
Change-Id: I801467d1a816dc1b0b1bd41ee4157c9593092544
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
}
public void onBindingRuntimeContextUpdated(final BindingRuntimeContext context) {
}
public void onBindingRuntimeContextUpdated(final BindingRuntimeContext context) {
- codecContext = create(context);
+ codecContext = new BindingCodecContext(context, this);
generator.onBindingRuntimeContextUpdated(context);
}
generator.onBindingRuntimeContextUpdated(context);
}
- public BindingCodecContext create(final BindingRuntimeContext context) {
+ public BindingCodecTree create(final BindingRuntimeContext context) {
return new BindingCodecContext(context, this);
}
@Override
return new BindingCodecContext(context, this);
}
@Override
- public BindingCodecContext create(final SchemaContext context, final Class<?>... bindingClasses) {
+ public BindingCodecTree create(final SchemaContext context, final Class<?>... bindingClasses) {
final ModuleInfoBackedContext strategy = ModuleInfoBackedContext.create();
for (final Class<?> bindingCls : bindingClasses) {
try {
final ModuleInfoBackedContext strategy = ModuleInfoBackedContext.create();
for (final Class<?> bindingCls : bindingClasses) {
try {