public class

ForkedFrameworkFactory

extends Object
java.lang.Object
   ↳ org.ops4j.pax.exam.forked.ForkedFrameworkFactory

Class Overview

Wraps an OSGi FrameworkFactory to create and launch a framework in a forked Java virtual machine running in a separate process.

The framework in the forked process can be controlled via a RemoteFramework interface.

Summary

Public Constructors
ForkedFrameworkFactory(FrameworkFactory frameworkFactory)
Creates a ForkedFrameworkFactory wrapping a given OSGi FrameworkFactory and a given framework storage directory
Public Methods
RemoteFramework fork(List<String> vmArgs, Map<String, String> systemProperties, Map<String, Object> frameworkProperties)
Forks a Java VM process running an OSGi framework and returns a RemoteFramework handle to it.
FrameworkFactory getFrameworkFactory()
void join()
Waits for the remote framework to shutdown and frees all resources.
void setFrameworkFactory(FrameworkFactory frameworkFactory)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ForkedFrameworkFactory (FrameworkFactory frameworkFactory)

Creates a ForkedFrameworkFactory wrapping a given OSGi FrameworkFactory and a given framework storage directory

Parameters
frameworkFactory OSGi framework factory

Public Methods

public RemoteFramework fork (List<String> vmArgs, Map<String, String> systemProperties, Map<String, Object> frameworkProperties)

Forks a Java VM process running an OSGi framework and returns a RemoteFramework handle to it.

@return

Parameters
vmArgs VM arguments
systemProperties system properties for the forked Java VM
frameworkProperties framework properties for the remote framework
Throws
BundleException
IOException
InterruptedException
NotBoundException
BundleException
IOException
InterruptedException
URISyntaxException

public FrameworkFactory getFrameworkFactory ()

public void join ()

Waits for the remote framework to shutdown and frees all resources.

public void setFrameworkFactory (FrameworkFactory frameworkFactory)