public class BaseCartridge extends Object implements ICartridge
EmbeddableCartridge,
StandaloneCartridgeNAME_VERSION_DELIMITER| Modifier | Constructor and Description |
|---|---|
|
BaseCartridge(String name) |
protected |
BaseCartridge(String name,
String displayName,
String description,
boolean obsolete)
Constructor used when available cartridges are loaded from OpenShift
|
protected |
BaseCartridge(String name,
URL url) |
protected |
BaseCartridge(String name,
URL url,
String displayName,
String description) |
protected |
BaseCartridge(String name,
URL url,
String displayName,
String description,
boolean obsolete) |
|
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
|
protected String |
getDisplayName(String displayName,
URL url) |
String |
getName()
Returns the name of this cartridge
|
CartridgeType |
getType() |
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). |
boolean |
isObsolete()
Returns
true if this cartridge is obsolete, false otherwise. |
String |
toString() |
public BaseCartridge(String name)
public BaseCartridge(URL url)
protected BaseCartridge(String name, String displayName, String description, boolean obsolete)
APIResource#getEmbeddableCartridges()public String getName()
ICartridgegetName in interface ICartridgepublic String getDisplayName()
ICartridgegetDisplayName in interface ICartridgepublic String getDescription()
ICartridgegetDescription in interface ICartridgepublic boolean isDownloadable()
ICartridgetrue 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 ICartridgetrue if this is a downloadable cartridgeICartridge.getUrl()public URL getUrl()
ICartridgenull if this is not a downloadable cartridge.getUrl in interface ICartridgeICartridge.isDownloadable()public CartridgeType getType()
getType in interface ICartridgepublic boolean isObsolete()
ICartridgetrue if this cartridge is obsolete, false otherwise.isObsolete in interface ICartridgeCopyright © 2014 JBoss by Red Hat. All rights reserved.