Package com.sun.enterprise.management.support

Examples of com.sun.enterprise.management.support.ParamNameMapper


  getParamNameMapper()
  {
    if ( mParamNameMapper == null )
    {
      mParamNameMapper  =
        new ParamNameMapper( getParamNameOverrides() );
    }
   
    return( mParamNameMapper );
  }
View Full Code Here


  translateParams(
    final Map<String,String>      paramsToTranslate,
    final AttributeList  attrsOut,
    final Properties  propsOut )
  {
    final ParamNameMapper  mapper  = getParamNameMapper();
   
    final Iterator  iter  = paramsToTranslate.keySet().iterator();
    final String  propertyPrefix  = PropertiesAccess.PROPERTY_PREFIX;
    while( iter.hasNext() )
    {
      final String  key  = (String)iter.next();
      final Object  value  = paramsToTranslate.get( key );
     
      if ( key.startsWith( propertyPrefix ) )
      {
        final String  name  =
          key.substring( propertyPrefix.length(), key.length() );
         
        propsOut.put( name, value );
      }
      else
      {
        final String  translatedName  = mapper.mangleAttributeName( key );
       
        final Attribute  attr  = new Attribute( translatedName, value );
       
        attrsOut.add( attr );
      }
View Full Code Here

TOP

Related Classes of com.sun.enterprise.management.support.ParamNameMapper

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.