org.ow2.petals.jbi.management.task.installation.install.component
Class ComponentCheckPackageTask

java.lang.Object
  extended by org.ow2.petals.jbi.management.task.AbstractLoggableTask
      extended by org.ow2.petals.jbi.management.task.AbstractCheckPackageTask
          extended by org.ow2.petals.jbi.management.task.installation.install.component.ComponentCheckPackageTask
All Implemented Interfaces:
Task

public class ComponentCheckPackageTask
extends AbstractCheckPackageTask

This task checks the validity of the component package.

Author:
ofabre - EBM Websourcing

Field Summary
protected  AdminService adminService
           
 
Fields inherited from class org.ow2.petals.jbi.management.task.AbstractLoggableTask
log
 
Constructor Summary
ComponentCheckPackageTask(org.ow2.petals.util.LoggingUtil log, AdminService adminService)
           
 
Method Summary
protected  void checkPackage(org.ow2.petals.jbi.descriptor.original.generated.Jbi descriptor, java.io.File filePackage)
          Check the validity of the component archive
protected  java.lang.String extractEntityName(org.ow2.petals.jbi.descriptor.original.generated.Jbi descriptor)
           
 
Methods inherited from class org.ow2.petals.jbi.management.task.AbstractCheckPackageTask
execute, extractEntityVersion, undo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

adminService

protected AdminService adminService
Constructor Detail

ComponentCheckPackageTask

public ComponentCheckPackageTask(org.ow2.petals.util.LoggingUtil log,
                                 AdminService adminService)
Method Detail

checkPackage

protected void checkPackage(org.ow2.petals.jbi.descriptor.original.generated.Jbi descriptor,
                            java.io.File filePackage)
                     throws org.ow2.petals.kernel.api.server.PetalsException
Check the validity of the component archive

Specified by:
checkPackage in class AbstractCheckPackageTask
Parameters:
descriptor - the component Jbi
filePackage - the service assembly package root
Throws:
org.ow2.petals.kernel.api.server.PetalsException - if component element or name is null or empty, if component is already installed or if some classpath elements of the component are missing

extractEntityName

protected java.lang.String extractEntityName(org.ow2.petals.jbi.descriptor.original.generated.Jbi descriptor)
Specified by:
extractEntityName in class AbstractCheckPackageTask


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