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.2 $
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)
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