Questions tagged [peaberry]
8 questions
                    
                    18
                    
            votes
                
                5 answers
            
        Implementing dynamic plugins in Java
I'd like to implement a dynamic plugin feature in a Java application. Ideally:
The application would define an interface Plugin with a method like getCapabilities().
A plugin would be a JAR pluginX.jar containing a class PluginXImpl implementing…
        
        Chris Conway
        
- 55,321
 - 43
 - 129
 - 155
 
                    8
                    
            votes
                
                2 answers
            
        What problem does Peaberry for Guice solve?
I understand the problem that OSGI solved thanks to this question....
What does OSGi solve?
And I am already convinved that Guice is amazing so I'm curious what this OSGI integration for Guice known as "peaberry" is supposed to do, it seems to be…
        
        benstpierre
        
- 32,833
 - 51
 - 177
 - 288
 
                    7
                    
            votes
                
                2 answers
            
        Looking for Guice-to-OSGi guiding principles, experience, tips, etc
Guice is a great framework to separate API from implementation and to start modularizing your applications. OSGi is a great framework to load versioned services in their own secured environment and to offer these via an exported API.
Assuming an…
        
        Jérôme Verstrynge
        
- 57,710
 - 92
 - 283
 - 453
 
                    5
                    
            votes
                
                1 answer
            
        Integrating Guice and OSGi services
What's the current situation with integrating Guice and OSGi? I.e. exposing OSGi services from Guice, injecting them, etc. 
Peaberry's main page mentions "The Guice trunk (which will become 2.0)", but 1.2 seems up-to-date, since it fixes…
        
        Alexey Romanov
        
- 167,066
 - 35
 - 309
 - 487
 
                    2
                    
            votes
                
                1 answer
            
        Using Guice/Peaberry for osgi declarative services
I want to solve the following problem and need advice, what the best solution is.
I have a bundle A in which a service interface X is defined. A bundle B provides a service implementation of X and contributes the implementation to the tool. A and B…
        
        Lars
        
- 81
 - 1
 - 6
 
                    2
                    
            votes
                
                1 answer
            
        Dynamic REST service declaration with Jersey
I'm trying to setup an architecture based on guice, OSGI embedded in Jetty, Jersey and I would like to able to register / remove Jersey REST services dynamically. How I can get a reference to the jersey context and add new REST services from a…
        
        yesil
        
- 697
 - 1
 - 9
 - 19
 
                    1
                    
            vote
                
                1 answer
            
        Guice, Peaberry and ServletModule
I am having an issue getting Peaberry/Guice/OSGi/Servlets to place nice. To begin, I have been migrating a Jetty-based, WAR deployed webapp over to OSGi to leverage the plugin architecture. My original application was using guice everywhere.
I have…
        
        Evan Ruff
        
- 582
 - 7
 - 21
 
                    0
                    
            votes
                
                1 answer
            
        How to Install and Start to osgi bundles at a time with one of them depending on other
I have two bundle say A and B. A depends on B (specified as Required-Bundle:B at A's MANIFEST).
Now I installed both A, B bundles one by one (by calling BundleContext.installBundle). Then when I try to start bundle A, I'm getting following…
        
        pgollangi
        
- 848
 - 3
 - 13
 - 28