• Home
  • RSS Feed
  • Log in

Posts Tagged ‘spi’


jar-with-deps don’t like META-INF/services
Posted by Andrew Phillips around lunchtime: July 20th, 2011

Recently, I was preparing a connection checker for Deployit’s powerful remote execution framework Overthere. To make the checker, as compact as possible, I put together a jar-with-deps1 for distribution.
Tests and trial runs from the IDE worked, so I was expected the dry-run of the distribution to be a quick formality. Instead: boom!
Turns out that one of the libraries used by Overthere, TrueZIP – or indeed any code that utilizes Java’s SPI mechanism2 – doesn’t play well with the jar-with-deps idea. (more…)

Share

Tags: Gradle, Maven, spi
Filed under Build tools, Gradle, Java, Xebia Labs | 9 Comments »


MultiSPI – consuming service provider interfaces in 2011
Posted by Andrew Phillips mid-morning: February 13th, 2011

Implementing a Java SPI isn’t a particularly 2011 experience1. Creating a correctly-named text file in META-INF/services, making sure it is correctly packaged and remembering to keep it up to date when you refactor is sufficiently annoying and error-prone that there are at least a couple of utils that aim to make this easier.

At XebiaLabs, however, we’re not just the implementors of our plugin SPI. We also write the deployment engine that consumes these plugins. And unfortunately, there isn’t much out there to help you read, load and verify services. Hence MultiSPI.
(more…)

Share

Tags: dependency injection, Java, spi
Filed under Java, Tools | No Comments »


Xebia Sites

  • Xebia Corporate
  • Xebia France
  • Xebia India
  • Xebia Sweden

Categories

  • Java (311)
  • Agile (181)
  • General (136)
  • Scrum (67)
  • Architecture (64)
  • Testing (59)
  • Performance (46)
  • Middleware (56)
    • Deployment (38)
  • Xebia Labs (39)
  • SOA (31)
  • Podcast (31)
  • Project Management (28)
  • Tools (26)
  • Uncategorized (20)
  • lean architecture (20)
  • Quality Assurance (17)
  • Articles (13)
  • Requirements Management (13)
  • Virtualization (19)

Tag Cloud

    Concurrency Control Scala lean architecture Oracle TDD Groovy Agile JPA Lean Javascript Frameworks Ajax ACT SOA product owner Xebia Maven XML Scrum Java Grails Moving to India Eclipse lean architectuur Spring Architecture agile architectuur JPA implementation patterns Hibernate Flex

Archives

  • February 2012
  • January 2012
  • December 2011
  • November 2011
  • October 2011
  • September 2011
  • August 2011
  • July 2011
  • June 2011
  • May 2011
  • April 2011
  • March 2011
Avatars by Sterling Adventures