|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.codemonster.surinam.core.model.BlueprintBase
com.codemonster.surinam.core.model.ContractBlueprint
public class ContractBlueprint
This is the standard Blueprint for all Service Contracts. A Contract is a formal Service definition in code and meta-data. Note that Contracts themselves can be unique, can be defined by anyone and implemented by anyone (not necessarily the same entity). Here, is where we begin implementing the type-safe Contract-specific API.
| Constructor Summary | |
|---|---|
ContractBlueprint()
|
|
ContractBlueprint(String deploymentRoot,
String implementingClass,
String description,
String organization,
String publicationDate)
Full constructor for constructor injection. |
|
| Method Summary | |
|---|---|
void |
addClasspathSegment(String pathsegment)
Adds a new path segment to the classpath if there is no segment that matches the given segment. |
List<URL> |
getClasspath()
|
URL[] |
getClasspathAsArray()
This accessor will deliver the class path as an array of URLs. |
List<String> |
getPathSegments()
Primarily for regenerating the original path segments, we will deliver the original strings. |
void |
setDefiningClass(String className)
Some syntactic sugar to allow for a more intuitive invocation to 'define' the contract as opposed to providing the 'implementing' class. |
void |
setPathSegments(List<String> pathSegments)
This is a setter method for bulk addition of classpath segments. |
| Methods inherited from class com.codemonster.surinam.core.model.BlueprintBase |
|---|
getAuthor, getDeploymentRoot, getDescription, getImplementingClass, getOrganization, getPublicationDate, setAuthor, setDeploymentRoot, setDescription, setImplementingClass, setOrganization, setPublicationDate |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContractBlueprint()
public ContractBlueprint(String deploymentRoot,
String implementingClass,
String description,
String organization,
String publicationDate)
throws MalformedURLException
deploymentRoot - The root to be used as part of the classpath.implementingClass - The FQ name of the implementation classdescription - A simple text description taken from the annotation.organization - The name of the publishing organization.publicationDate - The date of the publication.
MalformedURLException| Method Detail |
|---|
public void setDefiningClass(String className)
className - The interface Class name that defines the service contract.
public void setPathSegments(List<String> pathSegments)
throws MalformedURLException
pathSegments - A list of strings making up the relative paths to jar files that make up a
path segment.
MalformedURLExceptionpublic List<String> getPathSegments()
public void addClasspathSegment(String pathsegment)
throws MalformedURLException
pathsegment - The string to be converted into a URL and included as part of the classpath.
MalformedURLExceptionpublic List<URL> getClasspath()
public URL[] getClasspathAsArray()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||