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.17 $


Nested Class Summary
 
Nested classes/interfaces inherited from interface kaos.kpat.policyTemplates.PolicyTemplateFactory
PolicyTemplateFactory.TemplateFactoryListener
 
Constructor Summary
PolicyTemplateFactoryImpl()
           
 
Method Summary
 void addTemplate(PolicyTemplate template)
           
 void addTemplateFactoryListener(PolicyTemplateFactory.TemplateFactoryListener listener)
           
 java.util.Set getDefinedTemplateGroups()
           
 java.util.List getDefinedTemplateNames()
           
 java.util.Set getPolicyTemplateNames()
          Get the names of available templates
 PolicyTemplate newDefaultTemplate()
          Gets the default template to use, in case there isn't a matching template for a given name
 PolicyTemplate newPolicyTemplate(java.lang.String templateName)
          Obtain a new instance of the named policy template
 void removeTemplate(java.lang.String templateName)
           
 void removeTemplateFactoryListener(PolicyTemplateFactory.TemplateFactoryListener listener)
           
 void setDefinedTemplates(java.util.List definedTemplates)
           
 
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)

setDefinedTemplates

public void setDefinedTemplates(java.util.List definedTemplates)

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:
PolicyTemplateInstantiationException - is thrown if the instantiation of the editor was not successful, details will be provided in the exception's message.

addTemplateFactoryListener

public void addTemplateFactoryListener(PolicyTemplateFactory.TemplateFactoryListener listener)
Specified by:
addTemplateFactoryListener in interface PolicyTemplateFactory

removeTemplateFactoryListener

public void removeTemplateFactoryListener(PolicyTemplateFactory.TemplateFactoryListener listener)
Specified by:
removeTemplateFactoryListener in interface PolicyTemplateFactory

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

newDefaultTemplate

public PolicyTemplate newDefaultTemplate()
                                  throws PolicyTemplateInstantiationException
Description copied from interface: PolicyTemplateFactory
Gets the default template to use, in case there isn't a matching template for a given name

Specified by:
newDefaultTemplate in interface PolicyTemplateFactory
Throws:
PolicyTemplateInstantiationException

getDefinedTemplateGroups

public java.util.Set getDefinedTemplateGroups()
Specified by:
getDefinedTemplateGroups in interface PolicyTemplateFactory

getDefinedTemplateNames

public java.util.List getDefinedTemplateNames()