org.ops4j.pax.runner.platform.internal
Class LocalBundleReference

java.lang.Object
  extended by org.ops4j.pax.runner.platform.internal.LocalBundleReference
All Implemented Interfaces:
BundleReference

public class LocalBundleReference
extends java.lang.Object
implements BundleReference

A BundleReference pointing to a local downloaded file.

Since:
August 20, 2007
Author:
Alin Dreghiciu

Constructor Summary
LocalBundleReference(BundleReference bundleReference, java.io.File file)
          Creates a new local bundle.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getName()
          Returns the name to the bundle to be installed.
 java.lang.Integer getStartLevel()
          The start level of the bundle.
 java.net.URL getURL()
          Returns the url to the bundle to be installed.
 int hashCode()
           
 java.lang.Boolean shouldStart()
          Should the bundle should be started?
 java.lang.Boolean shouldUpdate()
          Should the bundle should be updated?
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LocalBundleReference

public LocalBundleReference(BundleReference bundleReference,
                            java.io.File file)
Creates a new local bundle.

Parameters:
bundleReference - a bundle reference; mandatory
file - corresponding file; mandatory
Method Detail

getName

public java.lang.String getName()
Returns the name to the bundle to be installed. Name is used for nice diplaying when required, as for example when downloading the reference to a local system file directory.

Specified by:
getName in interface BundleReference
Returns:
an name

getURL

public java.net.URL getURL()
Returns the url to the bundle to be installed.

Specified by:
getURL in interface BundleReference
Returns:
an url

getStartLevel

public java.lang.Integer getStartLevel()
The start level of the bundle. If null is returned the start level will not be set on the bundle.

Specified by:
getStartLevel in interface BundleReference
Returns:
the start level

shouldStart

public java.lang.Boolean shouldStart()
Should the bundle should be started?

Specified by:
shouldStart in interface BundleReference
Returns:
true, if the bundle should start

shouldUpdate

public java.lang.Boolean shouldUpdate()
Should the bundle should be updated?

Specified by:
shouldUpdate in interface BundleReference
Returns:
true, if the bundle should be updated

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()


Copyright © 2006-2011 OPS4J - Open Participation Software for Java. All Rights Reserved.