org.apache.servicemix.jbi.deployer.handler
Class Transformer

java.lang.Object
  extended by org.apache.servicemix.jbi.deployer.handler.Transformer

public class Transformer
extends Object

Helper class to transform JBI artifacts into OSGi bundles.


Method Summary
static Descriptor getDescriptor(File jbiArtifact)
           
static void transformToOSGiBundle(File jbiArtifact, File osgiBundle)
          Create an OSGi bundle from the JBI artifact.
static void transformToOSGiBundle(File jbiArtifact, File osgiBundle, Properties properties)
          Create an OSGi bundle from the JBI artifact.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

transformToOSGiBundle

public static void transformToOSGiBundle(File jbiArtifact,
                                         File osgiBundle)
                                  throws Exception
Create an OSGi bundle from the JBI artifact. The process creates the following OSGi manifest entries:

Parameters:
jbiArtifact - the input JBI artifact.
osgiBundle - the output OSGi bundle.
Throws:
Exception - if an error occurs during the transformation process.

transformToOSGiBundle

public static void transformToOSGiBundle(File jbiArtifact,
                                         File osgiBundle,
                                         Properties properties)
                                  throws Exception
Create an OSGi bundle from the JBI artifact. The process creates the following OSGi manifest entries:

Parameters:
jbiArtifact - the input JBI artifact.
osgiBundle - the output OSGi bundle.
Throws:
Exception - if an error occurs during the transformation process.

getDescriptor

public static Descriptor getDescriptor(File jbiArtifact)
                                throws Exception
Throws:
Exception


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