T - Type of security objectpublic abstract class AbstractResourceSecurityWrapper<T> extends Object implements SecurityObjectWrapper<T>, Storable
| Modifier and Type | Field and Description |
|---|---|
protected org.springframework.core.io.support.PathMatchingResourcePatternResolver |
resolver |
protected org.springframework.core.io.Resource |
resource |
| Constructor and Description |
|---|
AbstractResourceSecurityWrapper() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract T |
create(org.springframework.core.io.Resource targetResource) |
String |
getAlias() |
File |
getFile() |
org.springframework.core.io.Resource |
getResource() |
URL |
getResourceURL() |
T |
getSecurityObject() |
boolean |
hasChanged() |
protected void |
init(org.springframework.core.io.Resource initialResource) |
protected void |
init(org.springframework.core.io.Resource initialResource,
T initialSecurityObject) |
protected void |
init(String locationPattern) |
protected void |
init(String locationPattern,
T initialSecurityObject) |
void |
refresh() |
protected org.springframework.core.io.support.PathMatchingResourcePatternResolver resolver
protected org.springframework.core.io.Resource resource
protected void init(String locationPattern) throws ResourceStoreException
ResourceStoreExceptionprotected void init(org.springframework.core.io.Resource initialResource)
throws ResourceStoreException
ResourceStoreExceptionpublic String getAlias()
getAlias in interface SecurityObjectWrapper<T>protected void init(String locationPattern, T initialSecurityObject) throws ResourceStoreException
ResourceStoreExceptionprotected void init(org.springframework.core.io.Resource initialResource,
T initialSecurityObject)
throws ResourceStoreException
ResourceStoreExceptionpublic org.springframework.core.io.Resource getResource()
public URL getResourceURL()
public File getFile()
public void refresh()
throws ResourceStoreException
refresh in interface SecurityObjectWrapper<T>ResourceStoreExceptionprotected abstract T create(org.springframework.core.io.Resource targetResource) throws ResourceStoreException
ResourceStoreExceptionpublic T getSecurityObject() throws ResourceStoreException
getSecurityObject in interface SecurityObjectWrapper<T>ResourceStoreExceptionpublic boolean hasChanged()
hasChanged in interface SecurityObjectWrapper<T>Copyright © 2012. All Rights Reserved.