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

com.kero.security.lang.provider.CachedProvider Maven / Gradle / Ivy

Go to download

Kero-Security is a library for statically controlling access to properties of objects / classes.

There is a newer version: 0.1.39
Show newest version
package com.kero.security.lang.provider;

import com.kero.security.lang.collections.RootNodeList;

public class CachedProvider implements KsdlProvider {

	private KsdlProvider original;
	
	private RootNodeList roots;
	
	public CachedProvider(KsdlProvider original) {
		
		this.original = original;
	}
	
	@Override
	public RootNodeList getRoots() {
		
		if(roots == null) {
			
			roots = original.getRoots();
		}
		
		return this.roots;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy