com.codemonster.surinam.core.model
Class BlueprintBase

java.lang.Object
  extended by com.codemonster.surinam.core.model.BlueprintBase
All Implemented Interfaces:
Blueprint
Direct Known Subclasses:
ContractBlueprint, EntryPointBlueprint

public class BlueprintBase
extends Object
implements Blueprint

This is the implementation of the base interface for all blueprints that serves as the glue binding all subclasses. One design aspect worth mentioning is that in order to support multi-contract service bindings for implementation classes, a contract blueprint concept of its own contract class declaration resolves to an underlying binding list, which for contracts, will always hold just one entry for service definitions. There is the very forward-looking concept that contracts can actually be aggregations of other contracts but that is not currently supported.


Constructor Summary
BlueprintBase()
           
BlueprintBase(String deploymentRoot, String implementingClass, String description, String organization, String publicationDate)
          Full constructor for constructor injection.
 
Method Summary
 String getAuthor()
           
 String getDeploymentRoot()
           
 String getDescription()
           
 String getImplementingClass()
          This method will return a different identifier depending on the implementing subclass.
 String getOrganization()
           
 String getPublicationDate()
           
 void setAuthor(String author)
          This allows setting the individual contact of record for this release, if appropriate.
 void setDeploymentRoot(String deploymentRoot)
           
 void setDescription(String description)
           
 void setImplementingClass(String implementingClass)
           
 void setOrganization(String organization)
           
 void setPublicationDate(String publicationDate)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlueprintBase

public BlueprintBase(String deploymentRoot,
                     String implementingClass,
                     String description,
                     String organization,
                     String publicationDate)
Full constructor for constructor injection.

Parameters:
deploymentRoot - This is the root to be used for all blueprints to build relational paths.
implementingClass - The FQ class name.
description - Brief description of the blueprint.
organization - The name of the organization of record for this component.
publicationDate - The date that the component was formally published.

BlueprintBase

public BlueprintBase()
Method Detail

getDeploymentRoot

public String getDeploymentRoot()

setDeploymentRoot

public void setDeploymentRoot(String deploymentRoot)

setAuthor

public void setAuthor(String author)
Description copied from interface: Blueprint
This allows setting the individual contact of record for this release, if appropriate. This works for corporate releases in a support capacity (i.e. "userSupport@acme.com") and for individual implementation providers who don't have a corporate identity ("Rich Programmer a.k.a tom@tomsoftware.org").

Specified by:
setAuthor in interface Blueprint
Parameters:
author - The indentification string of an individual or contact entity for a company.

getAuthor

public String getAuthor()
Specified by:
getAuthor in interface Blueprint
Returns:
Returns an informative string about the author.

getImplementingClass

public String getImplementingClass()
Description copied from interface: Blueprint
This method will return a different identifier depending on the implementing subclass.

Specified by:
getImplementingClass in interface Blueprint
Returns:
Returns the unique name identifier for the given subclass.

setImplementingClass

public void setImplementingClass(String implementingClass)

getDescription

public String getDescription()
Specified by:
getDescription in interface Blueprint
Returns:
Returns the description of the blueprint.

setDescription

public void setDescription(String description)
Specified by:
setDescription in interface Blueprint
Parameters:
description - Returns the description of the blueprint.

getOrganization

public String getOrganization()
Specified by:
getOrganization in interface Blueprint
Returns:
Returns the organization that published this service blueprint.

setOrganization

public void setOrganization(String organization)
Specified by:
setOrganization in interface Blueprint
Parameters:
organization - Sets the organization that published this service blueprint.

getPublicationDate

public String getPublicationDate()
Specified by:
getPublicationDate in interface Blueprint
Returns:
Returns the date of publication for this service blueprint.

setPublicationDate

public void setPublicationDate(String publicationDate)
Specified by:
setPublicationDate in interface Blueprint
Parameters:
publicationDate - Returns the date of publication for this service blueprint.


Copyright © 2010. All Rights Reserved.