@Override
public Object create() throws ComponentDefinitionException {
RpcProviderRegistry rpcRegistry = (RpcProviderRegistry) container.getComponentInstance(
@Override
public Object create() throws ComponentDefinitionException {
RpcProviderRegistry rpcRegistry = (RpcProviderRegistry) container.getComponentInstance(
throw new ComponentDefinitionException(String.format(
"Implementation \"ref\" instance %s for \"%s\" is not an RpcService",
implementation.getClass(), ROUTED_RPC_IMPLEMENTATION));
throw new ComponentDefinitionException(String.format(
"Implementation \"ref\" instance %s for \"%s\" is not an RpcService",
implementation.getClass(), ROUTED_RPC_IMPLEMENTATION));
interfaceName, implementation.getClass(), container.getBundleContext().getBundle(),
ROUTED_RPC_IMPLEMENTATION);
interfaceName, implementation.getClass(), container.getBundleContext().getBundle(),
ROUTED_RPC_IMPLEMENTATION);
- "Implementation \"ref\" instance %s for \"%s\" implements more than one RpcService " +
- "interface (%s). Please specify the exact \"interface\"", implementation.getClass(),
+ "Implementation \"ref\" instance %s for \"%s\" implements more than one RpcService "
+ + "interface (%s). Please specify the exact \"interface\"", implementation.getClass(),
implementation, rpcInterface);
return rpcRegistry.addRoutedRpcImplementation(rpcInterface, (RpcService)implementation);
implementation, rpcInterface);
return rpcRegistry.addRoutedRpcImplementation(rpcInterface, (RpcService)implementation);
throw new ComponentDefinitionException(String.format(
"Error processing \"%s\" for %s", ROUTED_RPC_IMPLEMENTATION, implementation.getClass()), e);
}
}
@Override
throw new ComponentDefinitionException(String.format(
"Error processing \"%s\" for %s", ROUTED_RPC_IMPLEMENTATION, implementation.getClass()), e);
}
}
@Override