org.apache.servicemix.jbi.deployment
Class DescriptorFactory

java.lang.Object
  extended by org.apache.servicemix.jbi.deployment.DescriptorFactory

public final class DescriptorFactory
extends Object

Version:
$Revision: 359151 $

Field Summary
static String DESCRIPTOR_FILE
           
 
Method Summary
static Descriptor buildDescriptor(File descriptorFile)
          Build a jbi descriptor from a file archive
static Descriptor buildDescriptor(URL url)
          Build a jbi descriptor from the specified URL
static void checkDescriptor(Descriptor descriptor)
          Check validity of the JBI descriptor
static String getDescriptorAsText(File descriptorFile)
          Retrieves the jbi descriptor as a string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DESCRIPTOR_FILE

public static final String DESCRIPTOR_FILE
See Also:
Constant Field Values
Method Detail

buildDescriptor

public static Descriptor buildDescriptor(File descriptorFile)
Build a jbi descriptor from a file archive

Parameters:
descriptorFile - path to the jbi descriptor, or to the root directory
Returns:
the Descriptor object

buildDescriptor

public static Descriptor buildDescriptor(URL url)
Build a jbi descriptor from the specified URL

Parameters:
url - url to the jbi descriptor
Returns:
the Descriptor object

checkDescriptor

public static void checkDescriptor(Descriptor descriptor)
Check validity of the JBI descriptor

Parameters:
descriptor - the descriptor to check
Throws:
Exception - if the descriptor is not valid

getDescriptorAsText

public static String getDescriptorAsText(File descriptorFile)
Retrieves the jbi descriptor as a string

Parameters:
descriptorFile - path to the jbi descriptor, or to the root directory
Returns:
the contents of the jbi descriptor


Copyright © 2005-2008 Apache Software Foundation. All Rights Reserved.