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

net.plsar.model.BeforeAttributes Maven / Gradle / Ivy

Go to download

PLSA.R is an Open Source Java Server + API for high demand, low latency requirements. There are no static references, no file reads, access to static fields per request. Everything is either cached and or instantiated on the fly. PLSA.R runs via one command so there are no .war files to deploy, no additional plugins to install it is a simple yet powerful alternative to container deployment environments. PLSA.R even boasts a little dependency injection for data logic. www.plsar.net

The newest version!
package net.plsar.model;

import java.util.HashMap;
import java.util.Map;

public class BeforeAttributes {
    public BeforeAttributes() {
        this.attributes = new HashMap<>();
    }

    Map attributes;

    public Object get(String principalKey){
        String principalAttributesKey = principalKey.toLowerCase();
        if(this.attributes.containsKey(principalAttributesKey)){
            return this.attributes.get(principalAttributesKey);
        }
        return null;
    }

    public void set(String key, Object value){
        this.attributes.put(key, value);
    }

    public Map getAttributes() {
        return attributes;
    }

    public void setAttributes(Map attributes) {
        this.attributes = attributes;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy