Oracle Fusion Middleware Java API Reference for Oracle ADF Share
11g Release 1 (11.1.1.4.0)

E10686-05

oracle.adf.share.services
Class ResourceService

java.lang.Object
  extended by oracle.adf.share.services.ResourceService

public class ResourceService
extends java.lang.Object


Nested Class Summary
static interface ResourceService.StrategyVisitor
           
 
Field Summary
static java.lang.String SERVICE_NAME
           
static java.lang.String WILDCARD_TYPE
           
 
Constructor Summary
ResourceService()
           
 
Method Summary
 java.lang.ClassLoader getClassLoader()
           
 java.util.Collection<ServicePlugin> getPluginsForType(java.lang.ClassLoader classLoader, java.lang.String resourceType)
           
 java.util.Collection<ServicePlugin> getPluginsForType(java.lang.String resourceType)
           
 java.util.Collection<URLDescriptor> getResourcesForType(java.lang.ClassLoader classLoader, java.lang.String resourceType)
          Returns all available resources found on the classpath of the given ClassLoader for the provided resource type.
 java.util.Collection<URLDescriptor> getResourcesForType(java.lang.String resourceType)
           
 void setStrategyVisitor(ResourceService.StrategyVisitor visitor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVICE_NAME

public static final java.lang.String SERVICE_NAME
See Also:
Constant Field Values

WILDCARD_TYPE

public static final java.lang.String WILDCARD_TYPE
See Also:
Constant Field Values
Constructor Detail

ResourceService

public ResourceService()
Method Detail

setStrategyVisitor

public void setStrategyVisitor(ResourceService.StrategyVisitor visitor)

getResourcesForType

public java.util.Collection<URLDescriptor> getResourcesForType(java.lang.ClassLoader classLoader,
                                                               java.lang.String resourceType)
Returns all available resources found on the classpath of the given ClassLoader for the provided resource type. For all types, use the wildcard "*".


getResourcesForType

public java.util.Collection<URLDescriptor> getResourcesForType(java.lang.String resourceType)
Returns:
all available resources found on the current classpath for the provided resource type. For all types, use the wildcard "*".

getClassLoader

public java.lang.ClassLoader getClassLoader()
Returns:
The current thread context class loader

getPluginsForType

public java.util.Collection<ServicePlugin> getPluginsForType(java.lang.String resourceType)
                                                      throws java.io.IOException
Throws:
java.io.IOException

getPluginsForType

public java.util.Collection<ServicePlugin> getPluginsForType(java.lang.ClassLoader classLoader,
                                                             java.lang.String resourceType)
                                                      throws java.io.IOException
Throws:
java.io.IOException

Oracle Fusion Middleware Java API Reference for Oracle ADF Share
11g Release 1 (11.1.1.4.0)

E10686-05

Copyright © 1997, 2011, Oracle. All rights reserved.