Package org.apache.felix.framework
Class FrameworkFactory
java.lang.Object
org.apache.felix.framework.FrameworkFactory
- All Implemented Interfaces:
ConnectFrameworkFactory,FrameworkFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnewFramework(Map<String, String> configuration) Create a newFrameworkinstance.newFramework(Map<String, String> configuration, ModuleConnector connectFramework) Create a newFrameworkinstance using the specifiedmodule connector.
-
Constructor Details
-
FrameworkFactory
public FrameworkFactory()
-
-
Method Details
-
newFramework
Description copied from interface:FrameworkFactoryCreate a newFrameworkinstance.- Specified by:
newFrameworkin interfaceFrameworkFactory- Parameters:
configuration- The framework properties to configure the new framework instance. If framework properties are not provided by the configuration argument, the created framework instance must use some reasonable default configuration appropriate for the current VM. For example, the system packages for the current execution environment should be properly exported. The specified configuration argument may benull. The created framework instance must copy any information needed from the specified configuration argument since the configuration argument can be changed after the framework instance has been created.- Returns:
- A new, configured
Frameworkinstance. The framework instance must be in theBundle.INSTALLEDstate.
-
newFramework
Description copied from interface:ConnectFrameworkFactoryCreate a newFrameworkinstance using the specifiedmodule connector.- Specified by:
newFrameworkin interfaceConnectFrameworkFactory- Parameters:
configuration- The framework properties to configure the new framework instance. If framework properties are not provided by the configuration argument, the created framework instance must use some reasonable default configuration appropriate for the current VM. For example, the system packages for the current execution environment should be properly exported. The specified configuration argument may benull. The created framework instance must copy any information needed from the specified configuration argument since the configuration argument can be changed after the framework instance has been created.connectFramework- The module connector that the new framework instance will use. The specified module connector argument may benull.- Returns:
- A new, configured
Frameworkinstance. The framework instance must be in theBundle.INSTALLEDstate. - See Also:
-