This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Palestrante { | |
private String title; | |
private String description; | |
private String speaker; | |
public Palestrante() { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Java Cloud Service-Java na Oracle Cloud-Alexandre dos Santos | |
Serverless Java-It then turns to solutions available for developing serverless applications, or functions, with Java.-Ivar Grimstad | |
JUnit 5 - Vale a pena migrar?-JUNI5-Marco Paulo | |
Apache DeltaSpike Data-Apache DeltaSpike é uma coleção de extensões CDI portáveis que fornecem recursos úteis para desenvolvedores Java .-Daniel Dias |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.medium.danieldiasjava</groupId> | |
<artifactId>core.injecting.resources</artifactId> | |
<version>0.0.1-SNAPSHOT</version> | |
<name>Apache DeltaSpike - Core Injecting Resources</name> | |
<description>Apache DeltaSpike - Core Injecting Resources</description> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javax.enterprise.context.ApplicationScoped; | |
import org.apache.deltaspike.cdise.api.CdiContainer; | |
import org.apache.deltaspike.cdise.api.CdiContainerLoader; | |
import org.apache.deltaspike.cdise.api.ContextControl; | |
import org.apache.deltaspike.core.api.provider.BeanProvider; | |
@ApplicationScoped | |
public class CDIApplication { | |
public static void main(String[] args) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javax.enterprise.context.ApplicationScoped; | |
import org.apache.deltaspike.cdise.api.CdiContainer; | |
import org.apache.deltaspike.cdise.api.CdiContainerLoader; | |
import org.apache.deltaspike.cdise.api.ContextControl; | |
import org.apache.deltaspike.core.api.provider.BeanProvider; | |
@ApplicationScoped | |
public class CDIApplication { | |
public static void main(String[] args) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javax.inject.Inject; | |
import org.apache.deltaspike.core.api.config.ConfigProperty; | |
public class Pessoa { | |
@Inject | |
@ConfigProperty(name="meu.nome") | |
private String nome; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<beans bean-discovery-mode="all" version="2.0" | |
xmlns="http://xmlns.jcp.org/xml/ns/javaee" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee | |
http://xmlns.jcp.org/xml/ns/javaee/beans_2_0.xsd"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.medium.danieldiasjava</groupId> | |
<artifactId>core.configuration</artifactId> | |
<version>0.0.1-SNAPSHOT</version> | |
<name>Apache DeltaSpike - Core Configuration</name> | |
<description>Apache DeltaSpike - Core Configuration</description> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.List; | |
import org.apache.deltaspike.core.api.config.ConfigResolver; | |
public class ConfigurationApplication { | |
public static void main(String[] args) { | |
String nome = ConfigResolver.getPropertyValue("meu.nome"); | |
int idade = ConfigResolver.resolve("minha.idade") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
meu.nome=Daniel Dias | |
minha.idade=28 | |
minhas.palestras=JSR-371,DeltaSpike-Data |