org.resilientedge.jockey.servicebridge
Class SBManagerFactory
java.lang.Object
|
+--org.resilientedge.jockey.servicebridge.SBManagerFactory
- public class SBManagerFactory
- extends java.lang.Object
The SBManagerFactory is responsible for the creation of managers
for the various service instances and descriptors that the platform
supports.
- Version:
- $Revision: 1.1.1.1 $
- Author:
- AVaughan
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static SBManagerFactory getInstance()
- Returns the singleton instance
- Returns:
- The Instance value
getProvidedServices
public java.util.Vector getProvidedServices()
- Returns a vector of ServiceDescriptors of all the
services available in the servuce hub.
findServiceInstances
public java.util.Vector findServiceInstances(SBServiceDescriptor descriptor)
getService
finds a service based on a descriptor
for that service. Assumes that the given descriptor is not an exact
match, and the closest match must be found by examining all available
services.
- Parameters:
descriptor
- a SBServiceDescriptor
value
that desribes the service to be found- Returns:
- a vector of SBAbstractServiceInstance objects that match the
requested descriptor, empty vector if none found.
findServiceInstance
public SBAbstractServiceInstance findServiceInstance(SBServiceDescriptor descriptor)
getService
finds a service based on a descriptor
for that service. Assumes that the given descriptor is not an exact
match, and the closest match must be found by examining all available
services.
- Parameters:
descriptor
- a SBServiceDescriptor
value
that desribes the service to be found- Returns:
- a
SBAbstractServiceInstance
that was found,
null if not found
getServiceInstances
public java.util.Vector getServiceInstances(java.lang.String name)
- Gets all services of a given name
- Parameters:
name
- a String
name of the service wanted- Returns:
- a vector of SBAbstractServiceInstance objects that
have that name, empty vector if none found
getServiceInstance
public SBAbstractServiceInstance getServiceInstance(java.lang.String name)
- Gets a service of a given name
- Parameters:
name
- a String
name of the service wanted- Returns:
- a
SBAbstractServiceInstance
of a service of that
name, null if none found.
getServiceInstance
public SBAbstractServiceInstance getServiceInstance(SBServiceDescriptor descriptor)
addServiceManager
public void addServiceManager(SBServiceManager manager)
getServiceManagers
public SBServiceManager[] getServiceManagers()
main
public static void main(java.lang.String[] args)
Copyright © 2001 Resilient Edge, Inc. All Rights Reserved.