kaos.kpat.policyTemplates
Class PolicyTemplateFactoryImpl

java.lang.Object
  extended by kaos.kpat.policyTemplates.PolicyTemplateFactoryImpl
All Implemented Interfaces:
PolicyTemplateFactory

public class PolicyTemplateFactoryImpl
extends java.lang.Object
implements PolicyTemplateFactory

This implements PolicyTemplateFactory $Revision: 1.2 $


Constructor Summary
PolicyTemplateFactoryImpl()
           
 
Method Summary
 void addTemplate(PolicyTemplate template)
           
 java.util.Set getPolicyTemplateNames()
          Get the names of available templates
 PolicyTemplate newPolicyTemplate(java.lang.String templateName)
          Obtain a new instance of the named policy template
 void removeTemplate(java.lang.String templateName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolicyTemplateFactoryImpl

public PolicyTemplateFactoryImpl()
Method Detail

addTemplate

public void addTemplate(PolicyTemplate template)

removeTemplate

public void removeTemplate(java.lang.String templateName)

newPolicyTemplate

public PolicyTemplate newPolicyTemplate(java.lang.String templateName)
                                 throws PolicyTemplateInstantiationException
Obtain a new instance of the named policy template

Specified by:
newPolicyTemplate in interface PolicyTemplateFactory
Parameters:
templateName - The String specifying the policy template, for which an editor is requested.
Returns:
PolicyTemplate a new instance of the requested template
Throws:
PolicyEditorInstantiationException - is thrown if the instantiation of the editor was not successful, details will be provided in the exception's message.
PolicyTemplateInstantiationException

getPolicyTemplateNames

public java.util.Set getPolicyTemplateNames()
Get the names of available templates

Specified by:
getPolicyTemplateNames in interface PolicyTemplateFactory
Returns:
Set names of the available templates