public void init() {
// First resolve the interface class
- final Class<RpcService> interfaceClass = getRpcClass(interfaceName);
+ final Class<RpcService> interfaceClass = getRpcClass();
LOG.debug("{}: resolved interface {} to {}", ACTION_PROVIDER, interfaceName, interfaceClass);
if (reg != null) {
try {
reg.close();
- } catch (Exception e) {
+ } catch (final Exception e) {
LOG.warn("{}: error while unregistering", ACTION_PROVIDER, e);
} finally {
reg = null;
}
@SuppressWarnings("unchecked")
- private Class<RpcService> getRpcClass(final String interfaceName) {
+ private Class<RpcService> getRpcClass() {
final Class<?> iface;
try {
iface = bundle.loadClass(interfaceName);
- } catch (ClassNotFoundException e) {
+ } catch (final ClassNotFoundException e) {
throw new ComponentDefinitionException(String.format(
"The specified \"interface\" for %s \"%s\" does not refer to an available class", interfaceName,
ACTION_PROVIDER), e);