public class AbstractApplicationPlugin extends Object implements ApplicationPlugin
Modifier and Type | Field and Description |
---|---|
protected String |
displayName
the display name.
|
protected URI |
iframeLocation
the location of the iframe.
|
ALL_ASSOCATION_KEY, APPLICATION_ASSOCIATION_KEY, DISPLAY_NAME_KEY, ID_KEY, IFRAME_LOCATION_KEY
Constructor and Description |
---|
AbstractApplicationPlugin()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addAssocations(List<String> applicationAssociations)
Adds an application assocation list to the existing list.
|
void |
addAssociations(String applicationAssocation)
Adds a single application association to this plugin.
|
List<String> |
getAssocations()
Returns a list of applications that this plugin should be associated with.
|
String |
getDisplayName()
Returns the display name.
|
UUID |
getID()
Returns the id of this plugin.
|
String |
getIframeLocation()
Returns the iframe location.
|
boolean |
matchesAssocationName(String appName)
Handles figuring out if this plugin is matching to the app name sent in.
|
void |
setAssociations(List<String> applicationAssociations)
Sets the application assocations to the inputted values.
|
protected void |
setDisplayName(String displayName) |
protected void |
setIframeLocation(URI iframeLocation) |
Map<String,Object> |
toJSON()
Utility method that will handle the conversion of this object to something jolokia can convert
to json.
|
protected String displayName
protected URI iframeLocation
public List<String> getAssocations()
getAssocations
in interface ApplicationPlugin
public String getDisplayName()
getDisplayName
in interface ApplicationPlugin
public String getIframeLocation()
getIframeLocation
in interface ApplicationPlugin
public Map<String,Object> toJSON()
toJSON
in interface ApplicationPlugin
public boolean matchesAssocationName(String appName)
matchesAssocationName
in interface ApplicationPlugin
public UUID getID()
getID
in interface ApplicationPlugin
public void setAssociations(List<String> applicationAssociations)
setAssociations
in interface ApplicationPlugin
public void addAssociations(String applicationAssocation)
addAssociations
in interface ApplicationPlugin
public void addAssocations(List<String> applicationAssociations)
addAssocations
in interface ApplicationPlugin
protected void setIframeLocation(URI iframeLocation)
protected void setDisplayName(String displayName)
This work is licensed under a Creative Commons Attribution 4.0 International License.