public abstract class TemplateRegistry
extends java.lang.Object
Constructor and Description |
---|
TemplateRegistry() |
Modifier and Type | Method and Description |
---|---|
abstract ServiceLocationAttributeVerifier |
attributeVerifier(java.lang.String pDocumentURL)
Reads the template document URL and returns an attribute verifier for the
service type.
|
abstract void |
deregisterServiceTemplate(ServiceType pType,
java.util.Locale pLocale,
java.lang.String pVersion)
Deregister the template for the service type.
|
abstract java.lang.String |
findTemplateURL(ServiceType pType,
java.util.Locale pLocale,
java.lang.String pVersion)
Returns the URL for the template document.
|
static TemplateRegistry |
getTemplateRegistry()
Returns the distinguished TemplateRegistry object for performing
operations on and with service templates.
|
abstract void |
registerServiceTemplate(ServiceType pType,
java.lang.String pDocumentURL,
java.util.Locale pLocale,
java.lang.String pVersion)
Register the service template with the template registry.
|
public static TemplateRegistry getTemplateRegistry()
public abstract void registerServiceTemplate(ServiceType pType, java.lang.String pDocumentURL, java.util.Locale pLocale, java.lang.String pVersion) throws ServiceLocationException
pType
- The service type.pDocumentURL
- A string containing the URL of the template document. May not
be the empty string.pLocale
- A Locale object containing the language locale of the
template.pVersion
- The version number identifier of template document.ServiceLocationException
public abstract void deregisterServiceTemplate(ServiceType pType, java.util.Locale pLocale, java.lang.String pVersion) throws ServiceLocationException
pType
- The service type.pLocale
- A Locale object containing the language locale of the
template.pVersion
- A String containing the version number. Use null to indicate
the latest version.ServiceLocationException
public abstract java.lang.String findTemplateURL(ServiceType pType, java.util.Locale pLocale, java.lang.String pVersion) throws ServiceLocationException
pType
- The service type.pLocale
- A Locale object containing the language locale of the
template.pVersion
- A String containing the version number. Use null to indicate
the latest version.ServiceLocationException
public abstract ServiceLocationAttributeVerifier attributeVerifier(java.lang.String pDocumentURL) throws ServiceLocationException
pDocumentURL
- A String containing the template document's URL. May not be
the empty string.ServiceLocationException
Copyright © 2005, 2012 IBM Corporation. All Rights Reserved.