kaos.kpat.policyTemplates
Class PolicyTemplateFactoryImpl
java.lang.Object
kaos.kpat.policyTemplates.PolicyTemplateFactoryImpl
- All Implemented Interfaces:
- PolicyTemplateFactory
public class PolicyTemplateFactoryImpl
- extends java.lang.Object
- implements PolicyTemplateFactory
This implements PolicyTemplateFactory
$Revision: 1.17 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PolicyTemplateFactoryImpl
public PolicyTemplateFactoryImpl()
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()