Java EE 5 SDK

com.sun.appserv.management.config
Interface TemplateResolver

All Known Subinterfaces:
ClusteredServerConfig, ServerConfig, StandaloneServerConfig

public interface TemplateResolver

Interface implemented by MBeans which can resolve a template String to a value. Template strings are of the form ${XYZ} and are returned as the values of certain Attributes.


Method Summary
 boolean isTemplateString(String s)
          If the String is a template, return true.
 String resolveTemplateString(String template)
          If the String is a template, resolve it.
 

Method Detail

isTemplateString

boolean isTemplateString(String s)
If the String is a template, return true. A template String is a String of the form ${XYZ}.

Parameters:
s -
Returns:
true if the String is template String, false otherwise.

resolveTemplateString

String resolveTemplateString(String template)
If the String is a template, resolve it. If it is a template, but cannot be resolved, return it unchanged.

If the String is not a template, return it unchanged.

Parameters:
template - a template String
Returns:
resolved value

Java EE 5 SDK

Submit a bug or feature

Copyright 2006 Sun Microsystems, Inc. All rights reserved.