All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.customware.license.webapp.prefs.WebappSystemPreferences Maven / Gradle / Ivy

/*
 * WebappSystemPreferences 23/10/2007 [email protected]
 * --------------------------------------------------------------------------------------
 * Copyright (c) CustomWare Asia Pacific Pty Ltd. All rights reserved.  http://www.customware.net
 *				
 */

package net.customware.license.webapp.prefs;

import com.opensymphony.module.propertyset.PropertySet;
import com.opensymphony.module.propertyset.memory.MemoryPropertySet;

import java.util.HashMap;
import java.util.prefs.AbstractPreferences;

/**
 * This is an incomplete implementation of the Preferences API, with only enough
 * implemented to support the TrueLicense API.
 * 
 */

public class WebappSystemPreferences extends AbstractPropertySetPreferences{
    
    private PropertySet propertySet;
    
    
    public WebappSystemPreferences() {
        propertySet = new MemoryPropertySet();
        
        propertySet.init( new HashMap(), new HashMap() );
        
    }

    protected WebappSystemPreferences( WebappSystemPreferences parent, String name ) {
        super( parent, name );
    }

    @Override protected AbstractPreferences childSpi( String name ) {
        return new WebappSystemPreferences( this, name );
    }
 
    @Override protected PropertySet getPropertySet() {
                
        return propertySet;
    }
    
    
}






© 2015 - 2025 Weber Informatics LLC | Privacy Policy