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
ResourceStoreException
protected void init(org.springframework.core.io.Resource initialResource) throws ResourceStoreException
ResourceStoreException
public String getAlias()
getAlias
in interface SecurityObjectWrapper<T>
protected void init(String locationPattern, T initialSecurityObject) throws ResourceStoreException
ResourceStoreException
protected void init(org.springframework.core.io.Resource initialResource, T initialSecurityObject) throws ResourceStoreException
ResourceStoreException
public org.springframework.core.io.Resource getResource()
public URL getResourceURL()
public File getFile()
public void refresh() throws ResourceStoreException
refresh
in interface SecurityObjectWrapper<T>
ResourceStoreException
protected abstract T create(org.springframework.core.io.Resource targetResource) throws ResourceStoreException
ResourceStoreException
public T getSecurityObject() throws ResourceStoreException
getSecurityObject
in interface SecurityObjectWrapper<T>
ResourceStoreException
public boolean hasChanged()
hasChanged
in interface SecurityObjectWrapper<T>
Copyright © 2012. All Rights Reserved.