This file contains hidden or 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
| # update the (outdated) package list | |
| exec { "update-package-list": | |
| command => "/usr/bin/sudo /usr/bin/apt-get update", | |
| } |
This file contains hidden or 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
| class java_6 { | |
| package { "openjdk-6-jdk": | |
| ensure => installed, | |
| require => Exec["update-package-list"], | |
| } | |
| } |
This file contains hidden or 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
| class tomee { | |
| file {"/opt/tomee-1.5.1": | |
| ensure => directory, | |
| recurse => true, | |
| } -> | |
| exec { "download-tomee" : | |
| command => "/usr/bin/wget http://apache.rediris.es/openejb/openejb-4.5.1/apache-tomee-1.5.1-webprofile.tar.gz -O |
This file contains hidden or 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
| service { "tomee" : | |
| provider => "init", | |
| ensure => running, | |
| start => "/opt/tomee-1.5.1/bin/startup.sh", | |
| stop => "/opt/tomee-1.5.1/bin/shutdown.sh", | |
| status => "", | |
| restart => "", | |
| hasstatus => false, | |
| hasrestart => false, | |
| require => [ Exec["unpack-tomee"], Package["openjdk-6-jdk"] ], |
This file contains hidden or 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
| # update the (outdated) package list | |
| exec { "update-package-list": | |
| command => "/usr/bin/sudo /usr/bin/apt-get update", | |
| } | |
| class java_6 { | |
| package { "openjdk-6-jdk": | |
| ensure => installed, | |
| require => Exec["update-package-list"], |
This file contains hidden or 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.annotation.Resource; | |
| @Resource(name = "myDataSource") | |
| private DataSource movieDatabase; |
This file contains hidden or 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.net.UnknownHostException; | |
| import com.mongodb.MongoClient; | |
| public class MongoProvider { | |
| private String address; | |
| private int port; | |
| public MongoClient mongoClient() throws UnknownHostException { |
This file contains hidden or 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
| @Resource(name = "mongo") | |
| private MongoProvider mongo; | |
| public void createBookInMongo(Book book) throws Exception { | |
| MongoClient mongoClient = mongo.mongoClient(); | |
| } |
This file contains hidden or 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
| package com.lordofthejars.asciidoctorfy; | |
| /** | |
| * | |
| * My name is *Alex*. | |
| * I am 33 years _old_. | |
| * | |
| * Jump Jump +!!+. | |
| * | |
| * include::src/test/java/com/lordofthejars/asciidoctorfy/MyInterface.java[] |
This file contains hidden or 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
| My name is *Alex*. | |
| I am 33 years _old_. | |
| Jump Jump +!!+. | |
| [source, java] | |
| ---- | |
| public interface MyInterface { | |
| void loginSuccess(Object hash); |
OlderNewer