[ 
https://issues.apache.org/activemq/browse/SM-1090?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=40966#action_40966
 ] 

Guillaume Nodet commented on SM-1090:
-------------------------------------

Sounds good.  I think it's better than having people run an offline tool.  
Though maybe we could add this transformation automatically somehow.    I mean, 
we may want to support WARs too at some point, and we will have the same kind 
of problems.  So we need a way to plug in some transformations inside the file 
monitor maybe (instead of having lots of different deploy folders).    Maybe 
you could have a look at that ?
I think we need to define an interface like:

{code}
public interface DeploymentListener {
     /**
      * Returns true if the listener can process the given file
      */
     boolean canHandle(File artifact);

    /**
     * Process the given file (canHandle returned true previously)
     * Can return <null> or a pointer to a transformed file.
     */
    File handle(File artifact);      
}
{code}

This interface could be defined in the FileMonitor bundle and the OSGi deployer 
could register one.  We could also add one later for WAR deployments.

Thoughts ?

> JBI 1.0 compatibility layer: Offline tool to transform JBI artifacts in OSGi 
> bundles
> ------------------------------------------------------------------------------------
>
>                 Key: SM-1090
>                 URL: https://issues.apache.org/activemq/browse/SM-1090
>             Project: ServiceMix
>          Issue Type: New Feature
>            Reporter: Guillaume Nodet
>            Assignee: Jeff Yu
>             Fix For: 4.0
>
>         Attachments: SM-1090.patch, SM-1090.patch
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to