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

E10686-04

oracle.adf.share.services
Class ServicesFactory

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

public class ServicesFactory
extends java.lang.Object


Constructor Summary
ServicesFactory()
           
 
Method Summary
static java.util.List<ServiceRef> findServiceRefs(java.lang.String serviceName, java.lang.ClassLoader loader)
          Return a list of ServiceRef objects for all service instances matching the serviceName occurring only within the scope of both the array of URL's and the class loader passed.
static java.lang.String getServiceFileName(java.lang.String serviceName)
          This utility method allows the service developer to be isolated from how the name of the service file is formed and (for example) can be used within the design-time to write the file relative to the project.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServicesFactory

public ServicesFactory()
Method Detail

findServiceRefs

public static java.util.List<ServiceRef> findServiceRefs(java.lang.String serviceName,
                                                         java.lang.ClassLoader loader)
                                                  throws java.io.IOException
Return a list of ServiceRef objects for all service instances matching the serviceName occurring only within the scope of both the array of URL's and the class loader passed. If a null array of URL's is passed then the class loader provides the scope. If a null class loader is passed then the current Thread's context class loader is used.

Parameters:
serviceName - the desired service. ex: oracle.adf.model.services.Binding If an empty or null serviceName is passed then instances of oracle.adf.share.services.Services will be returned.
loader - The class loader to use. Pass null to use the current thread's context loader
Returns:
a list of ServiceRef objects matching the parameter criteria
Throws:
java.io.IOException - if this method encounters one, it's passed on to caller

getServiceFileName

public static java.lang.String getServiceFileName(java.lang.String serviceName)
This utility method allows the service developer to be isolated from how the name of the service file is formed and (for example) can be used within the design-time to write the file relative to the project.

Parameters:
serviceName - the desired service.
Returns:
the relative file name built from the service name. Ex: Passing in oracle.adf.model.services.BindingServices might return something like META-INF/oracle.adf.model.services.BindingServices.sva

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

E10686-04

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