Skip to content

Instantly share code, notes, and snippets.

Mesut mesut

Block or report user

Report or block mesut

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
mesut / Checkstyle pre-commit hook
Created May 5, 2016 — forked from gkzhong/Checkstyle pre-commit hook
Pre Commit Hook for running checkstyle on changed files
View Checkstyle pre-commit hook
# Pre-commit hook for running checkstyle on changed Java sources
# To use this you need:
# 1. checkstyle's jar file somewhere
# 2. a checkstyle XML check file somewhere
# 3. To configure git:
# * git config --add checkstyle.jar <location of jar>
# * git config --add checkstyle.checkfile <location of checkfile>
* Autowire Quartz Jobs with Spring context dependencies
* @see
public final class AutowiringSpringBeanJobFactory extends SpringBeanJobFactory implements ApplicationContextAware {
private transient AutowireCapableBeanFactory beanFactory;
public void setApplicationContext(final ApplicationContext context) {
beanFactory = context.getAutowireCapableBeanFactory();
You can’t perform that action at this time.