com.lonelystorm.air.asset.models.AssetTheme Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of air-asset Show documentation
Show all versions of air-asset Show documentation
The LonelyStorm Air Asset library provides support to be able to compile SASS files at runtime.
package com.lonelystorm.air.asset.models;
import javax.annotation.PostConstruct;
import javax.inject.Inject;
import org.apache.sling.api.resource.Resource;
import org.apache.sling.models.annotations.Model;
import org.apache.sling.models.annotations.injectorspecific.Self;
@Model(adaptables = Resource.class)
public class AssetTheme extends Asset {
@Self
private Resource resource;
@Inject
private String[] themes;
public String[] getThemes() {
return themes.clone();
}
@PostConstruct
protected void construct() {
setPath(resource.getPath());
setSources(resource);
}
}