org.ops4j.pax.runner.platform
Class BundleReferenceBean

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

public class BundleReferenceBean
extends java.lang.Object
implements BundleReference

A Java bean like implementation of Bundle reference.

Since:
August 20, 2007
Author:
Alin Dreghiciu

Constructor Summary
BundleReferenceBean(java.lang.String name, java.net.URL url)
          Create a new bundle reference based on url with the m_name form the corresponding parameter and with null start level and start.
BundleReferenceBean(java.lang.String name, java.net.URL url, java.lang.Integer startLevel, java.lang.Boolean shouldStart, java.lang.Boolean update)
          Creates a new bundle reference.
BundleReferenceBean(java.net.URL url)
          Create a new bundle reference based on url and with null start level and start.
 
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()
           
 void setName(java.lang.String name)
           
 void setShouldStart(java.lang.Boolean shouldStart)
           
 void setStartLevel(java.lang.Integer startLevel)
           
 void setURL(java.net.URL url)
           
 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

BundleReferenceBean

public BundleReferenceBean(java.net.URL url)
Create a new bundle reference based on url and with null start level and start.

Parameters:
url - bundle location

BundleReferenceBean

public BundleReferenceBean(java.lang.String name,
                           java.net.URL url)
Create a new bundle reference based on url with the m_name form the corresponding parameter and with null start level and start.

Parameters:
name - a nice ready to print bundle m_name; optional
url - bundle location

BundleReferenceBean

public BundleReferenceBean(java.lang.String name,
                           java.net.URL url,
                           java.lang.Integer startLevel,
                           java.lang.Boolean shouldStart,
                           java.lang.Boolean update)
Creates a new bundle reference.

Parameters:
name - a nice ready to print bundle m_name; optional
url - bundle location
startLevel - start level of the bundle; optional
shouldStart - if the bundle should be started; optional
update - if the bundle should be updated; optional
Method Detail

getName

public java.lang.String getName()
Description copied from interface: BundleReference
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()
Description copied from interface: BundleReference
Returns the url to the bundle to be installed.

Specified by:
getURL in interface BundleReference
Returns:
an url

getStartLevel

public java.lang.Integer getStartLevel()
Description copied from interface: BundleReference
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()
Description copied from interface: BundleReference
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()
Description copied from interface: BundleReference
Should the bundle should be updated?

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

setName

public void setName(java.lang.String name)

setURL

public void setURL(java.net.URL url)

setStartLevel

public void setStartLevel(java.lang.Integer startLevel)

setShouldStart

public void setShouldStart(java.lang.Boolean shouldStart)

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.