dev@glassfish.java.net

Re: GlassFish utility like sun.security.util.PropertyExpander

From: Ludovic Champenois <ludovic.champenois_at_oracle.com>
Date: Thu, 08 Jul 2010 12:17:11 -0700

On 7/8/10 11:41 AM, Joe Di Pol wrote:
>
> I know the config stuff will expand system properties like
> ${com.sun.aas.installRoot}. Is this capability exposed anywhere
> as a general method to expand system properties in a String?
> Basically I'm looking for a GlassFish version of
> sun.security.util.PropertyExpander.
>
> Thanks,
>
> Joe

Look at hk2, the Dom object, that has some methods:
     public String rawAttribute(String name)
     public String attribute(String name)
and the Translator class as well in hk2 org.jvnet.hk2.config


Ludo

>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>