org.ow2.petals.microkernel.api.jbi.management
Class PackageHelper

java.lang.Object
  extended by org.ow2.petals.microkernel.api.jbi.management.PackageHelper

public class PackageHelper
extends Object

Utility class for handling packages and package URLs.

Author:
Olivier Fabre - EBM WebSourcing, Roland Naudin - EBM WebSourcing

Constructor Summary
PackageHelper()
           
 
Method Summary
static org.ow2.petals.jbi.descriptor.original.generated.Jbi loadDescriptor(File packageFile)
          Load the JBI descriptor from the unzipped package folder of the given entity (component, shared lib or service assembly).
static org.ow2.petals.jbi.descriptor.original.generated.Jbi loadDescriptor(String entityName, JbiArchiveType entityType, RepositoryService repositoryService)
          Load the JBI descriptor from the repository folder of the given entity (component, shared libraries or service assembly).
static org.ow2.petals.jbi.descriptor.original.generated.Jbi loadDescriptor(URL archiveURL)
          Load the JBI descriptor from the given archive file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PackageHelper

public PackageHelper()
Method Detail

loadDescriptor

public static final org.ow2.petals.jbi.descriptor.original.generated.Jbi loadDescriptor(String entityName,
                                                                                        JbiArchiveType entityType,
                                                                                        RepositoryService repositoryService)
                                                                                 throws org.ow2.petals.basisapi.exception.PetalsException,
                                                                                        MalformedURLException,
                                                                                        org.ow2.petals.jbi.descriptor.JBIDescriptorException,
                                                                                        IOException
Load the JBI descriptor from the repository folder of the given entity (component, shared libraries or service assembly).

Parameters:
entityName - name of entity
entityType - type of entity (component, shared libraries or service assembly)
Returns:
the Jbi object
Throws:
org.ow2.petals.basisapi.exception.PetalsException
org.ow2.petals.basisapi.exception.PetalsException
IOException
org.ow2.petals.jbi.descriptor.JBIDescriptorException
MalformedURLException

loadDescriptor

public static final org.ow2.petals.jbi.descriptor.original.generated.Jbi loadDescriptor(URL archiveURL)
                                                                                 throws MalformedURLException,
                                                                                        org.ow2.petals.jbi.descriptor.JBIDescriptorException,
                                                                                        IOException,
                                                                                        org.ow2.petals.basisapi.exception.PetalsException
Load the JBI descriptor from the given archive file

Parameters:
archiveURI - the URI of the archive file
Returns:
the Jbi object
Throws:
IOException
org.ow2.petals.jbi.descriptor.JBIDescriptorException
MalformedURLException
org.ow2.petals.basisapi.exception.PetalsException

loadDescriptor

public static final org.ow2.petals.jbi.descriptor.original.generated.Jbi loadDescriptor(File packageFile)
                                                                                 throws org.ow2.petals.basisapi.exception.PetalsException,
                                                                                        FileNotFoundException,
                                                                                        org.ow2.petals.jbi.descriptor.JBIDescriptorException
Load the JBI descriptor from the unzipped package folder of the given entity (component, shared lib or service assembly).

Parameters:
unzipRoot - unzipped package root in work directory
Returns:
the Jbi object
Throws:
org.ow2.petals.basisapi.exception.PetalsException
org.ow2.petals.basisapi.exception.PetalsException
org.ow2.petals.jbi.descriptor.JBIDescriptorException
FileNotFoundException


Copyright © 2005-2015 Linagora. All Rights Reserved.