This repository has been archived by the owner on Jul 3, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#2 now can list annotations of discovered classes
- Loading branch information
michael-conway
committed
Jun 1, 2016
1 parent
2c36e53
commit 73b7d3a
Showing
4 changed files
with
190 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
147 changes: 147 additions & 0 deletions
147
publisher-sandbox/src/main/java/org/iplantc/de/publish/sandbox/PublisherDescription.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,147 @@ | ||
/** | ||
* | ||
*/ | ||
package org.iplantc.de.publish.sandbox; | ||
|
||
/** | ||
* Describes publishers discovered in the sandbox | ||
* | ||
* @author Mike Conway - DICE | ||
* | ||
*/ | ||
public class PublisherDescription { | ||
|
||
private Class<?> publisherClass; | ||
private String publisherName; | ||
private String description; | ||
private boolean asynch; | ||
private String author; | ||
private String version; | ||
|
||
/** | ||
* | ||
*/ | ||
public PublisherDescription() { | ||
} | ||
|
||
/** | ||
* @return the publisherClass | ||
*/ | ||
public Class<?> getPublisherClass() { | ||
return publisherClass; | ||
} | ||
|
||
/** | ||
* @param publisherClass | ||
* the publisherClass to set | ||
*/ | ||
public void setPublisherClass(Class<?> publisherClass) { | ||
this.publisherClass = publisherClass; | ||
} | ||
|
||
/** | ||
* @return the publisherName | ||
*/ | ||
public String getPublisherName() { | ||
return publisherName; | ||
} | ||
|
||
/** | ||
* @param publisherName | ||
* the publisherName to set | ||
*/ | ||
public void setPublisherName(String publisherName) { | ||
this.publisherName = publisherName; | ||
} | ||
|
||
/** | ||
* @return the description | ||
*/ | ||
public String getDescription() { | ||
return description; | ||
} | ||
|
||
/** | ||
* @param description | ||
* the description to set | ||
*/ | ||
public void setDescription(String description) { | ||
this.description = description; | ||
} | ||
|
||
/** | ||
* @return the asynch | ||
*/ | ||
public boolean isAsynch() { | ||
return asynch; | ||
} | ||
|
||
/** | ||
* @param asynch | ||
* the asynch to set | ||
*/ | ||
public void setAsynch(boolean asynch) { | ||
this.asynch = asynch; | ||
} | ||
|
||
/** | ||
* @return the author | ||
*/ | ||
public String getAuthor() { | ||
return author; | ||
} | ||
|
||
/** | ||
* @param author | ||
* the author to set | ||
*/ | ||
public void setAuthor(String author) { | ||
this.author = author; | ||
} | ||
|
||
/** | ||
* @return the version | ||
*/ | ||
public String getVersion() { | ||
return version; | ||
} | ||
|
||
/** | ||
* @param version | ||
* the version to set | ||
*/ | ||
public void setVersion(String version) { | ||
this.version = version; | ||
} | ||
|
||
/* | ||
* (non-Javadoc) | ||
* | ||
* @see java.lang.Object#toString() | ||
*/ | ||
@Override | ||
public String toString() { | ||
StringBuilder builder = new StringBuilder(); | ||
builder.append("PublisherDescription ["); | ||
if (publisherClass != null) { | ||
builder.append("publisherClass=").append(publisherClass) | ||
.append(", "); | ||
} | ||
if (publisherName != null) { | ||
builder.append("publisherName=").append(publisherName).append(", "); | ||
} | ||
if (description != null) { | ||
builder.append("description=").append(description).append(", "); | ||
} | ||
builder.append("asynch=").append(asynch).append(", "); | ||
if (author != null) { | ||
builder.append("author=").append(author).append(", "); | ||
} | ||
if (version != null) { | ||
builder.append("version=").append(version); | ||
} | ||
builder.append("]"); | ||
return builder.toString(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters