org.apache.aries.util
Class FragmentBuilder

java.lang.Object
  extended by org.apache.aries.util.FragmentBuilder

public class FragmentBuilder
extends Object


Constructor Summary
FragmentBuilder(Bundle host)
           
FragmentBuilder(Bundle host, String symbolicNameSuffix, String bundleNameSuffix)
           
 
Method Summary
 void addExports(String... imports)
           
 void addFile(String path, byte[] content)
           
 void addImports(String... imports)
           
 void addImportsFromExports(Bundle exportBundle)
           
 String getFragmentBundleName()
           
 String getFragmentSymbolicName()
           
 Bundle install(BundleContext ctx)
           
 void setName(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FragmentBuilder

public FragmentBuilder(Bundle host)

FragmentBuilder

public FragmentBuilder(Bundle host,
                       String symbolicNameSuffix,
                       String bundleNameSuffix)
Method Detail

setName

public void setName(String name)

addImports

public void addImports(String... imports)

addExports

public void addExports(String... imports)

addImportsFromExports

public void addImportsFromExports(Bundle exportBundle)

addFile

public void addFile(String path,
                    byte[] content)

install

public Bundle install(BundleContext ctx)
               throws IOException,
                      BundleException
Throws:
IOException
BundleException

getFragmentSymbolicName

public String getFragmentSymbolicName()

getFragmentBundleName

public String getFragmentBundleName()


Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.