com.kero.security.lang.provider.resource.CachedTextResource Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kero-security Show documentation
Show all versions of kero-security Show documentation
Kero-Security is a library for statically controlling access to properties of objects / classes.
package com.kero.security.lang.provider.resource;
public class CachedTextResource implements KsdlTextResource {
private KsdlTextResource original;
private String rawText;
public CachedTextResource(KsdlTextResource original) {
this.original = original;
}
@Override
public String getRawText() {
if(rawText == null) {
rawText = original.getRawText();
}
return this.rawText;
}
}