org.jboss.osgi.deployment.internal
Class AbstractDeployment

java.lang.Object
  extended by org.jboss.osgi.spi.util.AttachmentSupport
      extended by org.jboss.osgi.deployment.internal.AbstractDeployment
All Implemented Interfaces:
Serializable, Deployment, org.jboss.osgi.spi.Attachments
Direct Known Subclasses:
NullFileDeployment, VirtualFileDeployment

public abstract class AbstractDeployment
extends org.jboss.osgi.spi.util.AttachmentSupport
implements Deployment, Serializable

An abstraction of a bundle deployment

Since:
27-May-2009
Author:
thomas.diesler@jboss.com
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jboss.osgi.spi.Attachments
org.jboss.osgi.spi.Attachments.Key
 
Constructor Summary
AbstractDeployment(String location, String symbolicName, org.osgi.framework.Version version)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getLocation()
          Get the bundle location
 Integer getStartLevel()
          Get the start level associated with this deployment
 String getSymbolicName()
          Get the bundle symbolic name
 String getVersion()
          Get the bundle version Consider making Version serializable https://www.osgi.org/members/bugzilla/show_bug.cgi?id=1744
 int hashCode()
           
 boolean isAutoStart()
          Get the autostart flag associated with this deployment
 boolean isBundleUpdate()
          Get the update flag associated with this deployment
 void setAutoStart(boolean autoStart)
          Set the autostart flag associated with this deployment
 void setBundleUpdate(boolean update)
          Set the update flag associated with this deployment
 void setStartLevel(Integer startLevel)
          Set the start level associated with this deployment
 String toString()
           
 
Methods inherited from class org.jboss.osgi.spi.util.AttachmentSupport
addAttachment, addAttachment, addAttachment, getAttachment, getAttachment, getAttachment, getAttachmentKeys, removeAttachment, removeAttachment, removeAttachment
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jboss.osgi.deployment.deployer.Deployment
getRoot
 
Methods inherited from interface org.jboss.osgi.spi.Attachments
addAttachment, addAttachment, addAttachment, getAttachment, getAttachment, getAttachment, getAttachmentKeys, removeAttachment, removeAttachment, removeAttachment
 

Constructor Detail

AbstractDeployment

public AbstractDeployment(String location,
                          String symbolicName,
                          org.osgi.framework.Version version)
Method Detail

getLocation

public String getLocation()
Description copied from interface: Deployment
Get the bundle location

Specified by:
getLocation in interface Deployment

getSymbolicName

public String getSymbolicName()
Description copied from interface: Deployment
Get the bundle symbolic name

Specified by:
getSymbolicName in interface Deployment

getVersion

public String getVersion()
Description copied from interface: Deployment
Get the bundle version Consider making Version serializable https://www.osgi.org/members/bugzilla/show_bug.cgi?id=1744

Specified by:
getVersion in interface Deployment

getStartLevel

public Integer getStartLevel()
Description copied from interface: Deployment
Get the start level associated with this deployment

Specified by:
getStartLevel in interface Deployment

setStartLevel

public void setStartLevel(Integer startLevel)
Description copied from interface: Deployment
Set the start level associated with this deployment

Specified by:
setStartLevel in interface Deployment

isAutoStart

public boolean isAutoStart()
Description copied from interface: Deployment
Get the autostart flag associated with this deployment

Specified by:
isAutoStart in interface Deployment

setAutoStart

public void setAutoStart(boolean autoStart)
Description copied from interface: Deployment
Set the autostart flag associated with this deployment

Specified by:
setAutoStart in interface Deployment

isBundleUpdate

public boolean isBundleUpdate()
Description copied from interface: Deployment
Get the update flag associated with this deployment

Specified by:
isBundleUpdate in interface Deployment

setBundleUpdate

public void setBundleUpdate(boolean update)
Description copied from interface: Deployment
Set the update flag associated with this deployment

Specified by:
setBundleUpdate in interface Deployment

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class org.jboss.osgi.spi.util.AttachmentSupport


Copyright © 2012. All Rights Reserved.