I've been trying to figure out what I should use when cleaning my bicycle chain.  When I first purchased my bike, I knew I needed to lube my chain when i did regular maintenance.  I purchased some White Lightning Self Cleaning Bicycle lube, which suggested to me that I only needed to put that lube on the chain and everything would be fine.  

I recently purchased another brand of lube, and it didn't say anything about self cleaning.  I've read in several places that a degreaser is needed and a cloth and some soap to clean a chain properly, and then lubing takes place afterwards.  

If I buy White Lighting self cleaning lube, do I need to go through the regular chain cleaning steps?  or can i just lube my chain and go?


Question: How to specify which resources to protect with Spring Security OAuth2 provider configuration
Answer: Out of the box you won't be able to do it with Spring Security 3.0, but you can in 3.1.   According to this blog post: 


  In Spring Security 3.1, you will be able to use more than one http
  element to create multiple filter chains. Each chain handles different
  paths within the application, for example a stateless API under the
  URL /rest/** and a stateful web application configuration for all
  other requests.


To do what you want you can subclass the provider security filters and override doFilter() to only apply to certain URLs.   

If you are using namespace configuration you'll need to have your subclassed filters replace the corresponding filter in the filter chain.  Kindof a pain, but doable. For example, here's how I am doing it for my custom VerificationCodeFilter:

override def afterPropertiesSet() {
  setVerificationServices(springVerificationCodeFilter.getVerificationServices)
  setClientDetailsService(springVerificationCodeFilter.getClientDetailsService)
  setUserApprovalHandler(springVerificationCodeFilter.getUserApprovalHandler)
  super.afterPropertiesSet()

  val filterChainMap = filterChainProxy.getFilterChainMap
  val filterChain = filterChainMap.find(_._2.exists(_.isInstanceOf[SpringVerificationCodeFilter])).
                    getOrElse(throw new Exception("Could not find VerificationCodeFilter in FilterChainMap"))._2
  val index = filterChain.indexOf(springVerificationCodeFilter)
  filterChain.remove(index)
  filterChain.add(index, this)
}