Return-Path: X-Original-To: apmail-commons-dev-archive@www.apache.org Delivered-To: apmail-commons-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 946971054A for ; Sun, 4 Jan 2015 17:01:00 +0000 (UTC) Received: (qmail 9667 invoked by uid 500); 4 Jan 2015 17:01:01 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 9529 invoked by uid 500); 4 Jan 2015 17:01:01 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 9518 invoked by uid 99); 4 Jan 2015 17:01:01 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Jan 2015 17:01:01 +0000 Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com [74.125.82.50]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 24B131A0291 for ; Sun, 4 Jan 2015 17:00:54 +0000 (UTC) Received: by mail-wg0-f50.google.com with SMTP id a1so26525385wgh.9 for ; Sun, 04 Jan 2015 09:00:44 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.194.156.202 with SMTP id wg10mr171996656wjb.59.1420390844651; Sun, 04 Jan 2015 09:00:44 -0800 (PST) Received: by 10.194.25.162 with HTTP; Sun, 4 Jan 2015 09:00:44 -0800 (PST) In-Reply-To: <128562648.4263551.1420390660721.JavaMail.yahoo@jws11172.mail.ir2.yahoo.com> References: <128562648.4263551.1420390660721.JavaMail.yahoo@jws11172.mail.ir2.yahoo.com> Date: Sun, 4 Jan 2015 18:00:44 +0100 Message-ID: Subject: Re: Announce: Commons Inject From: Benedikt Ritter To: Commons Developers List , Mark Struberg Content-Type: multipart/alternative; boundary=089e0122ebd2bce05a050bd6831b --089e0122ebd2bce05a050bd6831b Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 2015-01-04 17:57 GMT+01:00 Mark Struberg : > Hi Jochen! > > > The code is now indeed self-contained. I did not really look at the code > but like to start with just a few small observations: > > 1.) the repo contains the whole eclipse project files. I'd rather remove > those from the repos and add them (+ idea files) to svn:ignore. > > 2.) javax-inject.api. I'd probably replace this via our own impl: > > http://repo1.maven.org/maven2/org/apache/geronimo/specs/geronimo-atinject= _1.0_spec/1.0/ why? (just out of curiosity :-) > > > 3.) the atinject (JSR-330) TCK. I compiled the project and it only said i= t > passes 2 tests. I double checked with OpenWebBeans and over there we run > (and pass of course) 50 tests. Maybe there is something wrong with the > integration? > > 4.) the Scopes. > You currently have a Enum for this. I guess it would be pretty easy to > switch this to using scope annotations which are meta-annotated with @Sco= pe > instead? And also implement the @Singleton scope based on that approach > instead of rolling your own? > > > Just a few ideas. > > > LieGrue, > strub > > > > > > > > > On Wednesday, 17 December 2014, 13:56, Jochen Wiedmann < > jochen.wiedmann@gmail.com> wrote: > > > Well spotted. I had added Guice as a Maven dependency so as to > > validate certain things while implementing. It's now removed. This > > should eliminate your concerns. Also, please note that the remaining > > dependencies are all provided, with the exception of > > javax.inject-1.jar and javax.inject-tck-1.jar, which are required for > > obvious reasons. (After all, this is the implemented standard.) > > > > > > > > On Wed, Dec 17, 2014 at 11:52 AM, Benedikt Ritter > > wrote: > >> 2014-11-19 8:44 GMT+01:00 Mark Struberg : > >>> > >>> Jochen, I might have done something wrong so please help me. > >>> > >>> I've checked out your svn link and built it. > >>> > >>> Then I did a > >>> > >>> $> mvn clean -DincludeScope=3Druntime dependency:copy-dependencies > >>> -rw-r--r--+ 1 struberg staff 4467 19. Nov 08:41 aopalliance-1.0.j= ar > >>> -rw-r--r--+ 1 struberg staff 2228009 19. Nov 08:41 guava-16.0.1.jar > >>> -rw-r--r--+ 1 struberg staff 642741 19. Nov 08:41 guice-4.0-beta5.j= ar > >>> -rw-r--r--+ 1 struberg staff 2497 19. Nov 08:41 javax.inject-1.ja= r > >>> > >>> > >>> $> du -hs target/dependencies > >>> > >>> show me 2.8 MB > >>> > >>> > >>> Plus your own jar which is 76k. > >>> Is there something wrong? What are you using guice and guava for? > >>> Also there is an own ASF package for atinject [1]. > >>> > >> > >> Jochen, can you please comment? > >> > >> Benedikt > >> > >> > >>> > >>> LieGrue, > >>> strub > >>> > >>> > >>> > >>> [1] > >>> > > > http://repo1.maven.org/maven2/org/apache/geronimo/specs/geronimo-atinject= _1.0_spec/1.0/ > >>> > >>> > >>> > >>> > >>> On Wednesday, 19 November 2014, 8:34, Mark Struberg > > > >>> wrote: > >>> >> Sorry, did not mean to step on somebody's toes. > >>> > > >>> >No worries you didn't. It's most probably our fault as our > > (OpenWebBeans) > >>> documentation sucks and we did not properly document all this stuff = ;) > >>> > > >>> >If one of you guys is at ApacheCon in Budapest right now, then > > I'd love > >>> to give you a quick rush through our code an see if there is somethi= ng > > you > >>> could use and also if we could improve something in OWB. > >>> > > >>> >LieGrue, > >>> >strub > >>> > > >>> > > >>> > > >>> > > >>> >----- Original Message ----- > >>> >> From: Oliver Heger > >>> >> To: Commons Developers List > >>> >> Cc: > >>> >> Sent: Sunday, 9 November 2014, 11:45 > >>> >> Subject: Re: Announce: Commons Inject > >>> >> > >>> >> > >>> >> > >>> >> On 08.11.2014 21:51, Romain Manni-Bucau wrote: > >>> >>> Le 8 nov. 2014 19:51, "Oliver Heger" > >>> >> a =C3=A9crit > >>> >>> : > >>> >>>> > >>> >>>> Hi Jochen, > >>> >>>> > >>> >>>> do you intend to position this framework for specific > > use cases? In > >>> >>>> which way is it different or special from other > > implementations? > >>> >>>> > >>> >>>> Just as one example: In the company I am working for, > > we are using > >>> CDI > >>> >>>> in a pretty large JSE application. Due to the huge > > class path the > >>> setup > >>> >>>> of the CDI container takes a long time and consumes a > > lot of memory > >>> >>>> (tested with both Weld SE and OpenWebBeans). So a > > fast and > >>> lightweight > >>> >>>> implementation for this special purpose would be > > interesting. > >>> >>>> > >>> >>> > >>> >>> Surely a bad example since you can achieve it with owb, > > just > >>> configure the > >>> >>> scanner service > >>> >> > >>> >> Sorry, did not mean to step on somebody's toes. > >>> >> > >>> >> Oliver > >>> >> > >>> >>> > >>> >>>> Oliver > >>> >>>> > >>> >>>> Am 04.11.2014 um 15:55 schrieb Jochen Wiedmann: > >>> >>>>> Hi, > >>> >>>>> > >>> >>>>> As some of you (hopefulyl not all) may have > > noticed, have added a > >>> >>>>> project called Commons Inject to the Sandbox [1] > > today. Commons > >>> >> Inject > >>> >>>>> is a JSR 330 compliant dependency injection > > framework. It is > >>> >> something > >>> >>>>> I had in the works for quite some time, but now > > it has reached a > >>> >>>>> decent state with my preliminary milestones > > reached: > >>> >>>>> > >>> >>>>> - Passes the JSR 330 TCK. > >>> >>>>> - Integrated lifecycle handling via > > @PostConstruct and @PreDestroy. > >>> >>>>> Works with all scopes, > >>> >>>>> including lazy singletons. (I never got this > > to work with Guice, > >>> >>>>> which has been my major > >>> >>>>> driver for doing this.) > >>> >>>>> - Integrated logger injection framework for > > Log4J, SLF4J, and > >>> >> Commons > >>> >>>>> Logging. Others can > >>> >>>>> easily be added. > >>> >>>>> > >>> >>>>> I intend to use this for serious works from now > > on and consequently > >>> >>>>> hope to create a release real soon, at which > > point I'll ask to > >>> >> move > >>> >>>>> this to proper. > >>> >>>>> > >>> >>>>> Any feedback welcome. > >>> >>>>> > >>> >>>>> Jochen > >>> >>>>> > >>> >>>>> [1] > >>> >> > > https://svn.apache.org/viewvc/commons/sandbox/commons-inject/trunk/ > >>> >>>>> > >>> >>>>> > >>> >>>> > >>> >>>> > >>> >>>> > > --------------------------------------------------------------------- > >>> >>>> To unsubscribe, e-mail: > > dev-unsubscribe@commons.apache.org > >>> >>>> For additional commands, e-mail: > > dev-help@commons.apache.org > >>> > > >>> >> > >>> >>>> > >>> >>> > >>> >> > >>> >> > > --------------------------------------------------------------------- > >>> >> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org > >>> >> For additional commands, e-mail: dev-help@commons.apache.org > >>> >> > >>> > > >>> > >> --------------------------------------------------------------------- > >>> >To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org > >>> >For additional commands, e-mail: dev-help@commons.apache.org > >>> > > >>> > > >>> > > >>> > >>> --------------------------------------------------------------------= - > >>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org > >>> For additional commands, e-mail: dev-help@commons.apache.org > >>> > >>> > >> > >> -- > >> http://people.apache.org/~britter/ > >> http://www.systemoutprintln.de/ > >> http://twitter.com/BenediktRitter > >> http://github.com/britter > > > > > > > > -- > > Our time is just a point along a line that runs forever with no end. > > (Al Stewart, Lord Grenville) > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org > For additional commands, e-mail: dev-help@commons.apache.org > > --=20 http://people.apache.org/~britter/ http://www.systemoutprintln.de/ http://twitter.com/BenediktRitter http://github.com/britter --089e0122ebd2bce05a050bd6831b--