org.ow2.jonas.extension.loader
Class Bundlizable

java.lang.Object
  extended by org.ow2.jonas.extension.loader.Bundlizable

public class Bundlizable
extends Object

Represents a jar file in lib/ext that will be converted in bundle.

Author:
Guillaume Sauthier

Constructor Summary
Bundlizable()
           
 
Method Summary
 File getSource()
           
 File getTarget()
           
 boolean isFirstUsage()
           
 boolean isSourceSuppressed()
           
 boolean isTargetOutdated()
           
 void setSource(File source)
          Set the source jar file.
 void setTarget(File target)
          Set the target bundle file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Bundlizable

public Bundlizable()
Method Detail

setSource

public void setSource(File source)
Set the source jar file.

Parameters:
source - the source jar file

setTarget

public void setTarget(File target)
Set the target bundle file.

Parameters:
target - generated bundle file

getSource

public File getSource()
Returns:
the source file (may be null).

getTarget

public File getTarget()
Returns:
the target bundle file (may be null).

isTargetOutdated

public boolean isTargetOutdated()
Returns:
true if the target bundle is outdated compared to the source file.

isSourceSuppressed

public boolean isSourceSuppressed()
Returns:
true is there is no source associated to the target bundle.

isFirstUsage

public boolean isFirstUsage()
Returns:
true if there is no target bundle.


Copyright © 2010 OW2 Consortium. All Rights Reserved.