org.ops4j.pax.scanner
Class ScannedBundleBean

java.lang.Object
  extended by org.ops4j.pax.scanner.ScannedBundleBean
All Implemented Interfaces:
ScannedBundle
Direct Known Subclasses:
ScannedFileBundle

public class ScannedBundleBean
extends java.lang.Object
implements ScannedBundle

A Java bean like implementation ScannedBundle.

Since:
August 17, 2007
Author:
Alin Dreghiciu

Constructor Summary
ScannedBundleBean()
           
ScannedBundleBean(java.lang.String location, java.lang.Integer startLevel, java.lang.Boolean shouldStart, java.lang.Boolean shouldUpdate)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getLocation()
          Returns the url to the bundle to be installed.
 java.lang.Integer getStartLevel()
          The start level of the bundle.
 int hashCode()
           
 void setLocation(java.lang.String location)
           
 void setShouldStart(java.lang.Boolean shouldStart)
           
 void setShouldUpdate(java.lang.Boolean update)
           
 void setStartLevel(java.lang.Integer startLevel)
           
 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

ScannedBundleBean

public ScannedBundleBean()

ScannedBundleBean

public ScannedBundleBean(java.lang.String location,
                         java.lang.Integer startLevel,
                         java.lang.Boolean shouldStart,
                         java.lang.Boolean shouldUpdate)
Method Detail

getLocation

public java.lang.String getLocation()
Description copied from interface: ScannedBundle
Returns the url to the bundle to be installed.

Specified by:
getLocation in interface ScannedBundle
Returns:
an url

getStartLevel

public java.lang.Integer getStartLevel()
Description copied from interface: ScannedBundle
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 ScannedBundle
Returns:
the start level

shouldStart

public java.lang.Boolean shouldStart()
Description copied from interface: ScannedBundle
Should the bundle should be started?

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

setLocation

public void setLocation(java.lang.String location)

setStartLevel

public void setStartLevel(java.lang.Integer startLevel)

setShouldStart

public void setShouldStart(java.lang.Boolean shouldStart)

shouldUpdate

public java.lang.Boolean shouldUpdate()
Description copied from interface: ScannedBundle
Should the bundle should be updated?

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

setShouldUpdate

public void setShouldUpdate(java.lang.Boolean update)

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


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