public abstract class BaseCartridge extends Object implements ICartridge
EmbeddableCartridge
,
StandaloneCartridge
NAME_VERSION_DELIMITER
Modifier | Constructor and Description |
---|---|
protected |
BaseCartridge(String name) |
protected |
BaseCartridge(String name,
String displayName,
String description) |
protected |
BaseCartridge(String name,
URL url) |
protected |
BaseCartridge(String name,
URL url,
String displayName,
String description) |
protected |
BaseCartridge(URL url) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getDescription()
Returns a description for this cartridge
|
String |
getDisplayName()
Returns a (human readable, nice) display name for this cartridge
|
String |
getName()
Returns the name of this cartridge
|
URL |
getUrl()
Returns the url at which the code for this cartridge may get downloaded.
|
int |
hashCode() |
boolean |
isDownloadable()
Returns
true if this is a downloadable cartridge whose code
may be downloaded at the url returned by ICartridge.getUrl() (cartridge
code will get downloaded upon creation). |
String |
toString() |
protected BaseCartridge(String name)
protected BaseCartridge(URL url)
public String getName()
ICartridge
getName
in interface ICartridge
public String getDisplayName()
ICartridge
getDisplayName
in interface ICartridge
public String getDescription()
ICartridge
getDescription
in interface ICartridge
public boolean isDownloadable()
ICartridge
true
if this is a downloadable cartridge whose code
may be downloaded at the url returned by ICartridge.getUrl()
(cartridge
code will get downloaded upon creation).
Examples:
isDownloadable
in interface ICartridge
true
if this is a downloadable cartridgeICartridge.getUrl()
public URL getUrl()
ICartridge
null if this is not a downloadable cartridge.
getUrl
in interface ICartridge
ICartridge.isDownloadable()
Copyright © 2013 JBoss by Red Hat. All rights reserved.