org.codehaus.plexus.context.ContextMapAdapter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of virtdata-lib-realer Show documentation
Show all versions of virtdata-lib-realer Show documentation
With inspiration from other libraries
package org.codehaus.plexus.context;
import java.util.HashMap;
public class ContextMapAdapter
extends HashMap
{
private Context context;
public ContextMapAdapter( Context context )
{
this.context = context;
}
public Object get( Object key )
{
try
{
Object value = context.get( key );
if ( value instanceof String )
{
return value;
}
else
{
return null;
}
}
catch ( ContextException e )
{
return null;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy