net.plsar.RouteAttributes Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plsar-java Show documentation
Show all versions of plsar-java Show documentation
PLSA.R is an Open Source Server + Framework Environment
for small to large scale 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.
package net.plsar;
import net.plsar.implement.ViewRenderer;
import net.plsar.model.NetworkSession;
import net.plsar.security.SecurityManager;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
public class RouteAttributes {
public RouteAttributes(){
this.attributes = new ConcurrentHashMap<>();
this.sessions = new ConcurrentHashMap<>();
this.routeEndpointHolder = new RouteEndpointHolder();
this.sessionRegistry = new ConcurrentHashMap<>();
}
RouteAttributes routeAttributes;
PersistenceConfig persistenceConfig;
ConcurrentMap attributes;
ConcurrentMap sessions;
ConcurrentMap viewRenderers;
ConcurrentMap sessionRegistry;
RouteEndpointHolder routeEndpointHolder;
Class> securityAccess;
SecurityManager securityManager;
public Object get(String key){
if(this.attributes.containsKey(key)){
return this.attributes.get(key);
}
return null;
}
public void set(String key, Object value){
this.attributes.put(key, value);
}
public RouteAttributes getRouteAttributes() {
return routeAttributes;
}
public void setRouteAttributes(RouteAttributes routeAttributes) {
this.routeAttributes = routeAttributes;
}
public PersistenceConfig getPersistenceConfig() {
return persistenceConfig;
}
public void setPersistenceConfig(PersistenceConfig persistenceConfig) {
this.persistenceConfig = persistenceConfig;
}
public ConcurrentMap getAttributes() {
return attributes;
}
public void setAttributes(ConcurrentMap attributes) {
this.attributes = attributes;
}
public ConcurrentMap getSessions() {
return sessions;
}
public void setSessions(ConcurrentMap sessions) {
this.sessions = sessions;
}
public ConcurrentMap getViewRenderers() {
return viewRenderers;
}
public void setViewRenderers(ConcurrentMap viewRenderers) {
this.viewRenderers = viewRenderers;
}
public ConcurrentMap getSessionRegistry() {
return sessionRegistry;
}
public void setSessionRegistry(ConcurrentMap sessionRegistry) {
this.sessionRegistry = sessionRegistry;
}
public RouteEndpointHolder getRouteEndpointHolder() {
return routeEndpointHolder;
}
public void setRouteEndpointHolder(RouteEndpointHolder routeEndpointHolder) {
this.routeEndpointHolder = routeEndpointHolder;
}
public Class> getSecurityAccess() {
return securityAccess;
}
public void setSecurityAccess(Class> securityAccess) {
this.securityAccess = securityAccess;
}
public SecurityManager getSecurityManager() {
return securityManager;
}
public void setSecurityManager(SecurityManager securityManager) {
this.securityManager = securityManager;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy