org.ow2.petals.jbi.management.util
Class PackageHelper

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

public class PackageHelper
extends java.lang.Object

Utility class for handling packages and package URLs

Author:
ofabre - EBM Websourcing, rnaudin - EBM Websourcing

Constructor Summary
PackageHelper()
           
 
Method Summary
static org.ow2.petals.jbi.descriptor.original.generated.Jbi loadDescriptor(java.io.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(java.lang.String entityName, RepositoryServiceImpl.EntityType 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(java.net.URL archiveURL)
          Load the JBI descriptor from the given archive
 
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(java.lang.String entityName,
                                                                                        RepositoryServiceImpl.EntityType entityType,
                                                                                        RepositoryService repositoryService)
                                                                                 throws org.ow2.petals.kernel.api.server.PetalsException,
                                                                                        java.net.MalformedURLException,
                                                                                        org.ow2.petals.jbi.descriptor.JBIDescriptorException,
                                                                                        java.io.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.kernel.api.server.PetalsException
org.ow2.petals.kernel.api.server.PetalsException
java.io.IOException
org.ow2.petals.jbi.descriptor.JBIDescriptorException
java.net.MalformedURLException

loadDescriptor

public static final org.ow2.petals.jbi.descriptor.original.generated.Jbi loadDescriptor(java.net.URL archiveURL)
                                                                                 throws java.net.MalformedURLException,
                                                                                        org.ow2.petals.jbi.descriptor.JBIDescriptorException,
                                                                                        java.io.IOException,
                                                                                        org.ow2.petals.kernel.api.server.PetalsException
Load the JBI descriptor from the given archive

Parameters:
archiveURI - the archive URI
Returns:
the Jbi object
Throws:
java.io.IOException
org.ow2.petals.jbi.descriptor.JBIDescriptorException
java.net.MalformedURLException
org.ow2.petals.kernel.api.server.PetalsException
org.ow2.petals.kernel.api.server.PetalsException
org.ow2.petals.kernel.api.server.PetalsException

loadDescriptor

public static final org.ow2.petals.jbi.descriptor.original.generated.Jbi loadDescriptor(java.io.File packageFile)
                                                                                 throws org.ow2.petals.kernel.api.server.PetalsException,
                                                                                        java.io.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.kernel.api.server.PetalsException
org.ow2.petals.kernel.api.server.PetalsException
org.ow2.petals.jbi.descriptor.JBIDescriptorException
java.io.FileNotFoundException


Copyright © 2005-2011 Petals Link (EBM Websourcing). All Rights Reserved.