org.apache.felix.fileinstall.internal
Class BundleTransformer

java.lang.Object
  extended by org.apache.felix.fileinstall.internal.BundleTransformer
All Implemented Interfaces:
ArtifactListener, ArtifactUrlTransformer

public class BundleTransformer
extends Object
implements ArtifactUrlTransformer

ArtifactUrlTransformer for plain bundles.


Constructor Summary
BundleTransformer()
           
 
Method Summary
 boolean canHandle(File artifact)
          Returns true if the listener can process the given artifact.
 URL transform(URL artifact)
          Process the given file (canHandle returned true previously) Can return or a pointer to a transformed file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BundleTransformer

public BundleTransformer()
Method Detail

canHandle

public boolean canHandle(File artifact)
Description copied from interface: ArtifactListener
Returns true if the listener can process the given artifact. Error occuring when checking the artifact should be catched and not be thrown.

Specified by:
canHandle in interface ArtifactListener
Parameters:
artifact - the artifact to check
Returns:
true if this listener supports the given artifact, false otherwise

transform

public URL transform(URL artifact)
Description copied from interface: ArtifactUrlTransformer
Process the given file (canHandle returned true previously) Can return or a pointer to a transformed file.

Specified by:
transform in interface ArtifactUrlTransformer


Copyright © 2011 Apache Software Foundation. All Rights Reserved.