{"action":"opened","issue":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-aws/issues/95","labels_url":"https://api.github.com/repos/spring-cloud/spring-cloud-aws/issues/95/labels{/name}","comments_url":"https://api.github.com/repos/spring-cloud/spring-cloud-aws/issues/95/comments","events_url":"https://api.github.com/repos/spring-cloud/spring-cloud-aws/issues/95/events","html_url":"https://github.com/spring-cloud/spring-cloud-aws/issues/95","id":103282993,"number":95,"title":"Java equivalent for aws-context:context-resource-loader?","user":{"login":"mhottinger1","id":9059156,"avatar_url":"https://avatars.githubusercontent.com/u/9059156?v=3","gravatar_id":"","url":"https://api.github.com/users/mhottinger1","html_url":"https://github.com/mhottinger1","followers_url":"https://api.github.com/users/mhottinger1/followers","following_url":"https://api.github.com/users/mhottinger1/following{/other_user}","gists_url":"https://api.github.com/users/mhottinger1/gists{/gist_id}","starred_url":"https://api.github.com/users/mhottinger1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhottinger1/subscriptions","organizations_url":"https://api.github.com/users/mhottinger1/orgs","repos_url":"https://api.github.com/users/mhottinger1/repos","events_url":"https://api.github.com/users/mhottinger1/events{/privacy}","received_events_url":"https://api.github.com/users/mhottinger1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-26T14:28:16Z","updated_at":"2015-08-26T14:28:16Z","closed_at":null,"body":"I used the following documentation to wire BasicAWSCredentials, KMSEncryptionMaterialsProvider, ClientConfiguration, and CryptoConfiguration into an AmazonS3EncryptionClient via XML configuration:\r\n\r\n[Spring Cloud AWS IO Guides](http://cloud.spring.io/spring-cloud-aws/spring-cloud-aws.html)\r\n\r\nThe last line of my XML configuration is something similar to:\r\n\r\n`<aws-context:context-resource-loader amazon-s3=\"myAmazonS3EncryptionClientBean\"/>`\r\n\r\nOnce I had everything wired-up using XML, I began refactoring in order to use all Java configuration, but couldn't figure out how to express the `<aws-context:context-resource-loader>` bean above in Java. I took a peek at the documentation and source, but nothing stood out. Any help/suggestions are appreciated!"}}