|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.crowd.integration.service.soap.client.BaseResourceLocator
public abstract class BaseResourceLocator
Abstract class with a few methods that will help locate a given resource
| Field Summary | |
|---|---|
protected org.apache.log4j.Logger |
logger
|
protected java.lang.String |
propertyFileLocation
|
| Constructor Summary | |
|---|---|
protected |
BaseResourceLocator(java.lang.String resourceName)
|
| Method Summary | |
|---|---|
protected java.lang.String |
formatFileLocation(java.lang.String fileLocation)
|
protected java.net.URL |
getClassLoaderResource()
Load a given resource. |
java.util.Properties |
getProperties()
The Properties present within the given resource. |
java.lang.String |
getResourceLocation()
Will return the location of the resource on the file system. |
protected java.lang.String |
getResourceLocationFromClassPath()
|
protected java.lang.String |
getResourceLocationFromSystemProperty()
Return's the location of the propertyResourceName on the filesystem, based off the location of a system property, it is returned as a URL.toExternalForm(); |
java.lang.String |
getResourceName()
The configured name of the resource |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final org.apache.log4j.Logger logger
protected java.lang.String propertyFileLocation
| Constructor Detail |
|---|
protected BaseResourceLocator(java.lang.String resourceName)
| Method Detail |
|---|
protected java.lang.String getResourceLocationFromSystemProperty()
protected java.lang.String formatFileLocation(java.lang.String fileLocation)
protected java.lang.String getResourceLocationFromClassPath()
protected java.net.URL getClassLoaderResource()
Thread.currentThread().getContextClassLoader()
ClassLoaderUtil.class.getClassLoader()
public java.lang.String getResourceName()
ResourceLocator
getResourceName in interface ResourceLocatorpublic java.util.Properties getProperties()
ResourceLocator
getProperties in interface ResourceLocatorpublic java.lang.String getResourceLocation()
ResourceLocator
getResourceLocation in interface ResourceLocator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||