kaos.kpat.policyTemplates
Interface PolicyTemplateFactory

All Known Implementing Classes:
PolicyTemplateFactoryImpl

public interface PolicyTemplateFactory

This interface provides a factory for obtaining policy templates $Revision: 1.9 $


Nested Class Summary
static interface PolicyTemplateFactory.TemplateFactoryListener
           
 
Method Summary
 void addTemplateFactoryListener(PolicyTemplateFactory.TemplateFactoryListener listener)
           
 java.util.Set getDefinedTemplateGroups()
           
 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 removeTemplateFactoryListener(PolicyTemplateFactory.TemplateFactoryListener listener)
           
 

Method Detail

newPolicyTemplate

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

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.

getPolicyTemplateNames

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

Returns:
Set names of the available templates

getDefinedTemplateGroups

java.util.Set getDefinedTemplateGroups()

newDefaultTemplate

PolicyTemplate newDefaultTemplate()
                                  throws PolicyTemplateInstantiationException
Gets the default template to use, in case there isn't a matching template for a given name

Throws:
PolicyTemplateInstantiationException

addTemplateFactoryListener

void addTemplateFactoryListener(PolicyTemplateFactory.TemplateFactoryListener listener)

removeTemplateFactoryListener

void removeTemplateFactoryListener(PolicyTemplateFactory.TemplateFactoryListener listener)