org.jboss.osgi.metadata
Class OSGiMetaDataBuilder

java.lang.Object
  extended by org.jboss.osgi.metadata.OSGiMetaDataBuilder

public class OSGiMetaDataBuilder
extends Object

A builder for OSGiMetaData.

Since:
04-Jun-2010
Author:
Thomas.Diesler@jboss.com

Method Summary
 OSGiMetaDataBuilder addDynamicImportPackages(Class<?>... packages)
           
 OSGiMetaDataBuilder addDynamicImportPackages(String... packages)
           
 OSGiMetaDataBuilder addExportPackages(Class<?>... packages)
           
 OSGiMetaDataBuilder addExportPackages(String... packages)
           
 OSGiMetaDataBuilder addImportPackages(Class<?>... packages)
           
 OSGiMetaDataBuilder addImportPackages(String... packages)
           
 OSGiMetaDataBuilder addMainAttribute(String key, String value)
           
static OSGiMetaDataBuilder createBuilder(String symbolicName)
           
static OSGiMetaDataBuilder createBuilder(String symbolicName, Version version)
           
 OSGiMetaData getOSGiMetaData()
           
static OSGiMetaData load(InputStream input)
           
static OSGiMetaData load(Manifest manifest)
           
static OSGiMetaData load(Properties props)
           
static OSGiMetaData load(Reader reader)
           
 OSGiMetaDataBuilder setBundleActivator(String value)
           
 OSGiMetaDataBuilder setBundleManifestVersion(int version)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

load

public static OSGiMetaData load(InputStream input)
                         throws IOException
Throws:
IOException

load

public static OSGiMetaData load(Reader reader)
                         throws IOException
Throws:
IOException

load

public static OSGiMetaData load(Properties props)

load

public static OSGiMetaData load(Manifest manifest)

createBuilder

public static OSGiMetaDataBuilder createBuilder(String symbolicName)

createBuilder

public static OSGiMetaDataBuilder createBuilder(String symbolicName,
                                                Version version)

setBundleManifestVersion

public OSGiMetaDataBuilder setBundleManifestVersion(int version)

setBundleActivator

public OSGiMetaDataBuilder setBundleActivator(String value)

addImportPackages

public OSGiMetaDataBuilder addImportPackages(Class<?>... packages)

addImportPackages

public OSGiMetaDataBuilder addImportPackages(String... packages)

addExportPackages

public OSGiMetaDataBuilder addExportPackages(Class<?>... packages)

addExportPackages

public OSGiMetaDataBuilder addExportPackages(String... packages)

addDynamicImportPackages

public OSGiMetaDataBuilder addDynamicImportPackages(Class<?>... packages)

addDynamicImportPackages

public OSGiMetaDataBuilder addDynamicImportPackages(String... packages)

addMainAttribute

public OSGiMetaDataBuilder addMainAttribute(String key,
                                            String value)

getOSGiMetaData

public OSGiMetaData getOSGiMetaData()


Copyright © 2010. All Rights Reserved.