You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Paul Fraser <pa...@qnenet.com> on 2022/08/12 00:44:32 UTC
Create Instance Programmatically
Hi,
What functionality is available in Karaf to create instances in code
rather than in the console?
Is there a preferred technique?
Are there any examples available?
Paul Fraser
Re: Create Instance Programmatically
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Paul,
You can use the instance service directly:
https://github.com/apache/karaf/blob/main/instance/src/main/java/org/apache/karaf/instance/core/InstanceService.java
Regards
JB
On Fri, Aug 12, 2022 at 2:44 AM Paul Fraser <pa...@qnenet.com> wrote:
>
> Hi,
>
> What functionality is available in Karaf to create instances in code
> rather than in the console?
>
> Is there a preferred technique?
>
> Are there any examples available?
>
> Paul Fraser
>