Skip to content

Instantly share code, notes, and snippets.

View dsyer's full-sized avatar

Dave Syer dsyer

View GitHub Profile
@dsyer
dsyer / wipe.md
Last active August 29, 2015 14:05
Notes on WebInvocationPrivilegeEvaluator in Java config

From WebSecurityConfigurerAdapter.init(WebSecurity):

public void init(final WebSecurity web) throws Exception {
  final HttpSecurity http = getHttp();
  web
    .addSecurityFilterChainBuilder(http)
    .postBuildAction(new Runnable() {
      public void run() {
 FilterSecurityInterceptor securityInterceptor = http.getSharedObject(FilterSecurityInterceptor.class);
@dsyer
dsyer / docker-compose.yml
Last active February 20, 2016 14:09
Example fig.yml for 2 services that want to chat over HTTP
configserver:
image: dsyer/java
volumes:
- ./configserver:/var/run/app
command: bash -c 'java -jar /var/run/app/target/*.jar'
links:
- eureka
environment:
- SPRING_PROFILES_ACTIVE=docker
ports:
@dsyer
dsyer / README.md
Last active September 25, 2019 04:09
Infrastructure Advisors and Spring ApplicationContext lifecycle

Aggressive Bean Instantiation and "Unproxyable" Beans

This project is a minimal setup depending only on spring-context but mimicking closely the mess that you get into with @EnableTransactionManagement (spring-tx) or @EnableGlobalMethodSecurity (spring-security). These annotations lead to registration of an InfrastructureAdvisorAutoProxyCreator which is responsible for locating the Advisor bean that provides the enabled feature. The mess is caused by aggressive bean instantiation in that component which can cause cascades of unsafe bean instantation

@dsyer
dsyer / reactor.md
Created June 2, 2014 14:10
FRP Notes

Notes on Reactive Programming

Reactive Programming is sexy (again) and a lot of people are making a lot of noise about it at the moment, not all of which is very easy to understand for an outsider and lowly enterprise Java developer like me. These notes are what I came up with to help me clarify my understanding of what the noise is about. I have tried to keep them as concrete as possible, and promise not to mention "denotational semantics" because I don't have a higher degree in Computer Science (and if I did it's hard to see how it would help). If you are looking

@dsyer
dsyer / README.md
Created February 27, 2013 08:34
Link demo POC

Demo for links

@dsyer
dsyer / .gitignore
Created June 13, 2012 14:12
Spring Batch @configuration samples using step scope
*~
#*
.#*
.gradle
*.sw?
*.class
.classpath
.project
.settings
bin
@dsyer
dsyer / .gitignore
Created April 19, 2012 14:06
Spring Security OAuth2 samples with custom OAuth2 endpoint URLs
*/src/META-INF/
*/src/main/java/META-INF/
samples/*/*/src/main/webapp/META-INF/
target/
.classpath
.project
.DS_Store
.settings/
*.iml
*.iws
@dsyer
dsyer / .gitignore
Created April 10, 2012 17:45
Basic no-op cloudfoundry service gateway
*.gem
.bundle
Gemfile.lock
pkg/*
vendor/
*~
#*
dev.yml
@dsyer
dsyer / .gitignore
Created March 19, 2012 13:28
Article analysing and simplifying the use of EventMachine and Fibers
*~
#*
.#*
scratch*
*.gem
.bundle
Gemfile.lock
pkg/*
@dsyer
dsyer / README.md
Created February 25, 2012 15:58
orion test project

test project for orionhub