*/
package org.opendaylight.controller.md.sal.binding.compat;
-import com.google.common.base.Throwables;
import org.opendaylight.controller.sal.binding.api.BindingAwareBroker.RpcRegistration;
import org.opendaylight.yangtools.concepts.ObjectRegistration;
import org.opendaylight.yangtools.yang.binding.RpcService;
private final ObjectRegistration<T> delegate;
private final Class<T> type;
- public DelegatedRootRpcRegistration(final Class<T> type,final ObjectRegistration<T> impl) {
+ DelegatedRootRpcRegistration(final Class<T> type, final ObjectRegistration<T> impl) {
this.delegate = impl;
this.type = type;
}
@Override
public void close() {
- try {
- // FIXME: Should use more specific registration object.
- delegate.close();
- } catch (final Exception e) {
- throw Throwables.propagate(e);
- }
+ delegate.close();
}
@Override
public Class<T> getServiceType() {
return type;
}
-
}