/** * Create a new instance of the OAuth signature configured with injected {@code ServiceLocator}. * @param injectionManager injection manager */ @Inject public OAuth1Signature(final InjectionManager injectionManager) { methods = new HashMap<String, OAuth1SignatureMethod>(); final List<OAuth1SignatureMethod> methodList = injectionManager.getAllInstances(OAuth1SignatureMethod.class); for (final OAuth1SignatureMethod oAuth1SignatureMethod : methodList) { methods.put(oAuth1SignatureMethod.name(), oAuth1SignatureMethod); } }
/** * Create a new instance of the OAuth signature configured with injected {@code ServiceLocator}. * @param serviceLocator Service locator (injected by HK2)/ */ @Inject public OAuth1Signature(final ServiceLocator serviceLocator) { methods = new HashMap<String, OAuth1SignatureMethod>(); final List<OAuth1SignatureMethod> methodList = serviceLocator.getAllServices(OAuth1SignatureMethod.class); for (final OAuth1SignatureMethod oAuth1SignatureMethod : methodList) { methods.put(oAuth1SignatureMethod.name(), oAuth1SignatureMethod); } }
/** * Create a new instance of the OAuth signature configured with injected {@code ServiceLocator}. * @param serviceLocator Service locator (injected by HK2)/ */ @Inject public OAuth1Signature(final ServiceLocator serviceLocator) { methods = new HashMap<String, OAuth1SignatureMethod>(); final List<OAuth1SignatureMethod> methodList = serviceLocator.getAllServices(OAuth1SignatureMethod.class); for (final OAuth1SignatureMethod oAuth1SignatureMethod : methodList) { methods.put(oAuth1SignatureMethod.name(), oAuth1SignatureMethod); } }