Java Advent Calendar 2011の16日目です。 前:JSFUnitでテストしよう! | Kokuzawaの日記 次:JavaEE使ってウェブアプリケーションつくろうよ - 水まんじゅう 書いてること JUnit の話です。使い始めからちょっとだけ踏み込んだ辺りですかね。ちょっとだけなので普通に使ってる方には不要な内容かと思います。私の今持ってる知識を書き殴ってみた感じになりましたが、微妙な理解と残念な文章力の相乗効果でグダグダになってます。お察しください。 内容は Assertion->カスタムAssertion、Matcher->カスタムMatcher、Rule->カスタムRule です。 Assertion JUnitは assert があってこそです。まず org.junit.Assert にある馴染み深い assert を並べてみます。 assertEquals
Java, Advent Calendarこの記事は Java Advent Calendar 2011 の一環で書いてます。詳細はこちらを参照してください。昨日の id:ttmmrr さんの記事はこちら (2012年の公休日とか)JTableのフィルタリング - ttmmrr(@o_tmr)の日記たまたま、いま作ってるプログラムで、Javaプログラマに役立ちそうな部分があったので、その部分を抜き出して公開することにしました。今回はその紹介をしようと思います。 「インタフェースこそが型である」世界Java: The Good Parts という本がありまして、その3章において、(私の理解としては)Javaにおいて、型とはインタフェースのことあり、クラスは型に実装を提供するものであり、すべてのクラスはインタフェースを備えるべきだ、とかいう意味の論が展開されてます。インタフェースはクラスから型
確実に一定時間スリープする - terazzoの日記ではThreadの割り込みがあっても確実に一定時間の停止を試みているが、そもそもこのようなコードは書いてはいけない。 Thread.sleep()は一定時間止まるための便利メソッドとしてよく知られているが、そのときに発生するInterruptedExceptionについての理解は広まっていない気がする。割り込みとはなんなのか。どういう時に使うのか。 目覚まし時計 お昼休みに昼寝をしようとする。寝過ごすといけないので15分後にアラームを鳴らす設定をした。 さて、ひと眠りするか、というところに友人がやってきた。昼寝はやめて売店に行くことにした。果たして売店でアラームが鳴り始めた。 さて、このとき、アラームは15分間の待機を命じられたわけだけども、お昼寝がキャンセルされたことで、もう待機しなくてよくなってしまった。むしろ、さっさと待機をやめてく
原文(投稿日:2011/11/30)へのリンク Yammerの従業員であるCoda Hale氏がScalaの商用ベンダであるTypesafe社へ送ったメールがYCombinatorとGitHubのgist経由でリークした。メールによれば、Yammerは複雑さや性能面を鑑みて、基盤のインフラをScalaからJavaへ戻すそうだ。 YammerのPR部門のShelley Risk氏によればこのメールはCoda Hale氏の個人的な意見であり、Yammerの公式な見解ではないとのことだ。このリーク後、Coda Hale氏は自身の考えをhttp://codahale.com/the-rest-of-the-story/で表明している。氏はこのメールはDonald Fischer氏(Typesafe社のCEO)からのフィードバックの要請に答えたもので、移行を示唆するツイートを補足したものだと説明して
Apache TomEE, pronounced "Tommy", is an all-Apache Java EE 6 Web Profile certified stack where Apache Tomcat is top dog. Apache TomEE is assembled from a vanilla Apache Tomcat zip file. We start with Apache Tomcat, add our jars and zip up the rest. The result is Tomcat with added EE features - TomEE. Download Apache TomEE Now » and get started today! The Web Profile version of TomEE contains CDI
Apache TomEE, pronounced “Tommy”, is an Jakarta EE 10 application server extends Apache Tomcat that is assembled from a vanilla Apache Tomcat zip file. We start with Apache Tomcat, add our jars, and zip up the rest. The result is Tomcat plus EE features - TomEE. Final Release - Jakarta namespace apache-tomee-10.1.1 Final Release, Apache TomEE 10.1 implements Jakarta EE 10 with MicroProfile 6.1. It
Getting Started If you're new to Git or distributed version control systems generally, then you might want to read Git for Eclipse Users first. If you need more details and background read the book Pro Git. Find details about each release in the new and noteworthy and the release notes. Taking JGit for a Spin Although you are probably interested in JGit because you want to integrate it into an exi
Locate nodetool, a binary bundled with Cassandra. Verify that JAVA_HOME is set to the location of IBM JDK 8. When possible, rely on minor compactions instead of major compactions to address performance concerns. Minor compactions are triggered automatically when you perform a flush. Schedule compactions often enough such that operations are optimized and compactions are not overlapping. Schedule c
BLOG | CompanyWhat’s New in Cassandra 1.0: Improved Memory and Disk Space Management Cassandra 1.0 incorporates several improvements to how Cassandra's storage engine manages memory and disk space, bringing better performance and addressing some of the most common pain points for Cassandra administration. Off-heap row cache Cassandra provides a built-in row cache for super-fast access to frequentl
As we've worked towards 1.0 over the past year, Cassandra's performance has improved spectacularly. Compared to the current release this time in 2010, we've increased our write performance a respectable 40%. But the real area we wanted to focus on improving was read performance, which we succeeded in increasing a phenomenal 400%! Reads There are actually two different execution paths for reads in
原文(投稿日:2011/10/13)へのリンク Karl Pauls氏が PojoSR 0.1.6をリリースした。これは、完全なOSGiランタイムスタックを必要とせずにOSGi バンドルをロードでき、サービスを一緒に繋ぐことができるようにする。PojoSR が完全なOSGiプラットフォームと違うのは、ネストしたクラスローダーを使わないことである。なので構造化したOSGi環境でしばしば動かなくなる Hibernateのような行儀の悪いライブラリでも正常に動き続ける。 クラスパス(classpath )上で走っている通常のアプリケーションと違って、 PojoSRによって、フラットなクラスパス ビューからアプリケーションを μServicesで作られたクラスパス ビューへ移行できる。 Declarative Services やApache Felix Gogoシェルのような既存のOSGi バン
The Javaflow Component Sometimes it is usefull if we can capture the state of the application, its stack of function calls, which includes local variables, the global variables and the program counter, and save them into an object. If this object would give us the ability to restart the processing from the point stored in it. A continuation is exactly the type of object that we need. Think of a co
業務で使うplay! 所属 生息地 私のJava経験 クラシックなstrutsを新人の頃使ってた EJB3.0をちょっと使ってた s2系のフレームワークをちょっと使ってた JPAは知らない 今回の経緯 自分 ちょっと前に入社 Frameworkが クラシックAsp ベース 高性能だが工数が掛かる アプリケーション基盤を 自分で用意する事にした 案件内容 中小企業の基幹システム 比較的小規模(20∼30画面) 既存システムからのフルリプレイス 物流系システム 要件ヒヤリング 画面サンプル DB設計など 3∼9月 顧客 最終レビュー 10月 業務プログラ ム実装開始 11月∼ 案件全体の進 状況 Frameworkの 選定/実現性分析 8月中∼ アプリケーション部の進 状況 共通処理の先行 開発 9月中∼ Play!を採用した理由 初期導入コストが掛からない →マニュアルも日本語化されている
この記事では、JDK 7の新機能である、 Java仮想マシン(JVM)における動的型付け言語のサポートについて説明します。 この機能は、JSR 292: Supporting Dynamically Typed Languages on the Java Platform(Javaプラットフォームにおける動的型付け言語のサポート)を実装したものであり、JSR 223: Scripting for the Java Platform(Javaプラットフォーム向けスクリプト)を論理的に引き継いでいます。 JSR 223のサポートはJava SE 6に含まれており、JDK 6で実装されています。 JDK 7ではJSR 292のサポートの追加によって、動的型付け言語がJVMでこれまでよりも高速に動作するようになります。 このサポートで重要なのは、メソッド呼出し用のinvokedynamicという新
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く