ariba.ui.aribaweb.util
Class AWClasspathResourceDirectory

java.lang.Object
  extended by ariba.ui.aribaweb.util.AWBaseObject
      extended by ariba.ui.aribaweb.util.AWResourceDirectory
          extended by ariba.ui.aribaweb.util.AWClasspathResourceDirectory
All Implemented Interfaces:
AWObject

public final class AWClasspathResourceDirectory
extends AWResourceDirectory


Field Summary
static java.lang.String AWJarPropertiesPath
           
 
Fields inherited from class ariba.ui.aribaweb.util.AWBaseObject
AribaHashtableClass, AribaVectorClass, ClassClass, EmptyHashtable, EmptyMap, EmptyVector, False, IntegerClass, JavaHashtableClass, JavaMapClass, JavaVectorClass, LogHandling, NullObject, ObjectClass, StringClass, True, UndefinedObject, UndefinedString, UninitializedRealNumber
 
Method Summary
static java.util.Properties aribawebPropertiesForName(java.lang.String jarName)
           
static java.lang.Object aribawebPropertyValue(java.lang.String key)
           
static void autoRegisterJarResources(AWMultiLocaleResourceManager resourceManager)
          Process all AW jars, registering their resources and running their initializers
static java.util.Map<java.lang.String,java.net.URL> awJarUrlsByName()
          Returns list of aribaweb-savvy jars (those containing an aribaweb.properties file)
 AWResource createResource(java.lang.String resourceName, java.lang.String relativePath)
           
 java.lang.String directoryPath()
          return a cannonical directory path that always ends with "/"
 java.lang.String[] filesWithExtension(java.lang.String relativePath, java.lang.String fileExtension)
          return list of files with certain file name extension
static boolean hasResourcesUnderPath(java.lang.String directoryPath)
           
static void recordResourcePath(java.lang.String path, java.lang.String urlString)
           
static java.util.Set<java.lang.String> referencedAWJarNames()
           
 java.lang.String urlPrefix()
          return the url prefix for all the resources in this directory
 
Methods inherited from class ariba.ui.aribaweb.util.AWResourceDirectory
containsPackagedResources, disableResourceLookupLogging, enableResourceLookupLogging, formatCacheableUrlForResource, formatUrlForResource, setContainsPackagedResources, toString
 
Methods inherited from class ariba.ui.aribaweb.util.AWBaseObject
debugString, ensureFieldValuesClear, getFieldValue, init, isKindOfClass, localizedJavaString, logString, logWarning, setFieldValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

AWJarPropertiesPath

public static final java.lang.String AWJarPropertiesPath
See Also:
Constant Field Values
Method Detail

urlPrefix

public java.lang.String urlPrefix()
Description copied from class: AWResourceDirectory
return the url prefix for all the resources in this directory

Specified by:
urlPrefix in class AWResourceDirectory

directoryPath

public java.lang.String directoryPath()
Description copied from class: AWResourceDirectory
return a cannonical directory path that always ends with "/"

Specified by:
directoryPath in class AWResourceDirectory

createResource

public AWResource createResource(java.lang.String resourceName,
                                 java.lang.String relativePath)
Overrides:
createResource in class AWResourceDirectory

recordResourcePath

public static void recordResourcePath(java.lang.String path,
                                      java.lang.String urlString)

hasResourcesUnderPath

public static boolean hasResourcesUnderPath(java.lang.String directoryPath)

filesWithExtension

public java.lang.String[] filesWithExtension(java.lang.String relativePath,
                                             java.lang.String fileExtension)
Description copied from class: AWResourceDirectory
return list of files with certain file name extension

Overrides:
filesWithExtension in class AWResourceDirectory

awJarUrlsByName

public static java.util.Map<java.lang.String,java.net.URL> awJarUrlsByName()
Returns list of aribaweb-savvy jars (those containing an aribaweb.properties file)

Returns:
Map with file name of jar (without extension) as key, and URL to jar as value

aribawebPropertiesForName

public static java.util.Properties aribawebPropertiesForName(java.lang.String jarName)

referencedAWJarNames

public static java.util.Set<java.lang.String> referencedAWJarNames()

aribawebPropertyValue

public static java.lang.Object aribawebPropertyValue(java.lang.String key)

autoRegisterJarResources

public static void autoRegisterJarResources(AWMultiLocaleResourceManager resourceManager)
Process all AW jars, registering their resources and running their initializers



AribaWeb User Interface Development Framework
Copyright © 2000-2014 Ariba, Inc. All Rights Reserved.