brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "you@example.com"
// https://rmannibucau.wordpress.com/2015/03/10/cdi-and-startup/ | |
@ApplicationScoped | |
public class ProvisioningDataForApplicationLifecycle { | |
private final Map<String, User> users = new HashMap<>(); // + getter | |
public void init(@Observes @Initialized(ApplicationScoped.class) Object init) { | |
users.put("cdi", new User("cdi", "1.1")); | |
users.put("deltaspike", new User("deltaspike", "1.3")); | |
} |
package com.github.stefanheimberg.example.support; | |
import javax.enterprise.context.spi.CreationalContext; | |
import javax.enterprise.inject.spi.Bean; | |
import javax.enterprise.inject.spi.BeanManager; | |
public final class CDIUtil { | |
public static <T> T lookupByName(final String name) { | |
final BeanManager bm = getBeanManager(); |
brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "you@example.com"
<jqa:jqassistant-rules xmlns:jqa="http://www.buschmais.com/jqassistant/core/analysis/rules/schema/v1.0"> | |
<!-- http://neo4j.com/developer/cypher/ --> | |
<constraint id="entity-rules:FieldAccess"> | |
<requiresConcept refId="jpa2:Entity" /> | |
<description>All JPA Entities without Field Access</description> | |
<cypher><![CDATA[ | |
MATCH | |
(e:Jpa:Entity)-[:DECLARES]->(m:Method), |
<?xml version="1.0" encoding="UTF-8"?> | |
<persistence xmlns="http://java.sun.com/xml/ns/persistence" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence | |
http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd" | |
version="1.0"> | |
<!-- derby --> |