class CharArrayToListResolveDependencyStrategy implements IResolveDependencyStrategy {

    @Override
    public <T> T resolve(final Object... args) throws ResolveDependencyStrategyException {
        try {

            char[] chars = (char[]) args[0];
            List<Character> result = new ArrayList<>(chars.length);
            for (char aChar : chars) {
                result.add(aChar);
            }

            return (T) result;
        } catch (Exception e) {
            throw new ResolveDependencyStrategyException("Can't create list from char array.", e);
        }
    }

}