Package org.apache.aries.util
Class FragmentBuilder
- java.lang.Object
-
- org.apache.aries.util.FragmentBuilder
-
public class FragmentBuilder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description FragmentBuilder(Bundle host)
FragmentBuilder(Bundle host, java.lang.String symbolicNameSuffix, java.lang.String bundleNameSuffix)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addExports(java.lang.String... imports)
void
addFile(java.lang.String path, byte[] content)
void
addImports(java.lang.String... imports)
void
addImportsFromExports(Bundle exportBundle)
java.lang.String
getFragmentBundleName()
java.lang.String
getFragmentSymbolicName()
Bundle
install(BundleContext ctx)
void
setName(java.lang.String name)
-
-
-
Method Detail
-
setName
public void setName(java.lang.String name)
-
addImports
public void addImports(java.lang.String... imports)
-
addExports
public void addExports(java.lang.String... imports)
-
addImportsFromExports
public void addImportsFromExports(Bundle exportBundle)
-
addFile
public void addFile(java.lang.String path, byte[] content)
-
install
public Bundle install(BundleContext ctx) throws java.io.IOException, BundleException
- Throws:
java.io.IOException
BundleException
-
getFragmentSymbolicName
public java.lang.String getFragmentSymbolicName()
-
getFragmentBundleName
public java.lang.String getFragmentBundleName()
-
-