|
Service Activator Toolkit
Version 1.0.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.soda.sat.core.util.FactoryUtility
The FactoryUtility class provides an API through which instances
of many of the SAT abstractions may be created. The goal of this class is to
keep the SAT implementation classes private, while allowing objects to be
created and shared via public interfaces.
Note: This is a singleton class, accessible only via the static method
getInstance(). For example:
FactoryUtility utility = FactoryUtility.getInstance(); IExportServiceRecordContainer container = utility.createExportServiceRecordContainer();
| Method Summary | |
IBundleActivationManager |
createBundleActivationManager()
Create an IBundleActivationManager. |
IDependencyTracker |
createDependencyTracker(int prerequisites,
int dependents)
Create a dependency tracker. |
IExportProxyServiceRecord |
createExportProxyServiceRecord(BundleContext bundleContext,
Class[] interfaceTypes,
IProxyServiceHandler handler,
Dictionary properties)
Create an IExportProxyServiceRecord with properties that
implements multiple interfaces. |
IExportProxyServiceRecord |
createExportProxyServiceRecord(IExportServiceRecord exportServiceRecord,
Class[] interfaceTypes,
IProxyServiceHandler handler)
Create an IExportProxyServiceRecord with properties that
implements multiple interfaces. |
IExportServiceRecord |
createExportServiceRecord(BundleContext bundleContext,
String[] names,
Object service,
Dictionary properties)
Create an IExportServiceRecord. |
IExportServiceRecordContainer |
createExportServiceRecordContainer()
Create an IExportServiceRecordContainer. |
IFileLog |
createFileLog(File file)
Create an IFileLog. |
IImportServiceRecord |
createImportServiceRecord(BundleContext bundleContext,
String name,
Filter filter)
Create an IImportServiceRecord. |
IImportServiceRecordContainer |
createImportServiceRecordContainer()
Create a "strict" IImportServiceRecordContainer. |
ILineReader |
createLineReader(InputStream stream)
Create a line reader. |
ILineReader |
createLineReader(InputStream stream,
ILineReader.IAdvisor advisor)
Create a line reader. |
ILineReader |
createLineReader(InputStream stream,
int size)
Create a line reader. |
ILineReader |
createLineReader(InputStream stream,
int size,
ILineReader.IAdvisor advisor)
Create a line reader. |
ILineWriter |
createLineWriter(OutputStream stream)
Create a line writer. |
ILineWriter |
createLineWriter(OutputStream stream,
int size)
Create a line writer. |
IManagedServiceFactoryActivationManager |
createManagedServiceFactoryActivationManager(String name,
IManagedServiceFactoryAdvisor advisor)
Create an IManagedServiceFactoryActivationManager. |
IQueue |
createQueue(int capacity)
Create an IQueue. |
IServiceDetecter |
createServiceDetecter(BundleContext bundleContext,
String name)
Create an IServiceDetecter. |
IThreadLocal |
createThreadLocal()
Create an IThreadLocal. |
IThreadLocal |
createThreadLocal(int size)
Create an IThreadLocal. |
ITokenizer |
createTokenizer(String value)
Create an ITokenizer. |
ITokenizer |
createTokenizer(String value,
char delimiter)
Create an ITokenizer. |
ITokenizer |
createTokenizer(String value,
char delimiter,
int index)
Create an ITokenizer. |
ITokenizer |
createTokenizer(String value,
int index)
Create an ITokenizer. |
static FactoryUtility |
getInstance()
Public getter for the FactoryUtility singleton instance. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static FactoryUtility getInstance()
FactoryUtility singleton instance.
FactoryUtilitypublic IBundleActivationManager createBundleActivationManager()
IBundleActivationManager.
IBundleActivationManager.
public IDependencyTracker createDependencyTracker(int prerequisites,
int dependents)
prerequisites - A hint to the number of prerequisites.dependents - A hint to the number of dependents.
public IExportProxyServiceRecord createExportProxyServiceRecord(BundleContext bundleContext,
Class[] interfaceTypes,
IProxyServiceHandler handler,
Dictionary properties)
IExportProxyServiceRecord with properties that
implements multiple interfaces.
bundleContext - The BundleContext handle back to the
framework.interfaceTypes - The interface types used to create the proxy
service and register it with the OSGi framework.handler - An IProxyServiceHandler.properties - The properties of the exported service.
IExportProxyServiceRecord.
public IExportProxyServiceRecord createExportProxyServiceRecord(IExportServiceRecord exportServiceRecord,
Class[] interfaceTypes,
IProxyServiceHandler handler)
IExportProxyServiceRecord with properties that
implements multiple interfaces.
exportServiceRecord - The export service record.interfaceTypes - The interface types used to create the proxy
service and register it with the OSGi
framework.handler - An IProxyServiceHandler.
IExportProxyServiceRecord.
public IExportServiceRecord createExportServiceRecord(BundleContext bundleContext,
String[] names,
Object service,
Dictionary properties)
IExportServiceRecord.
bundleContext - The BundleContext handle back to the
framework.names - The fully qualified type names of the exported
service.service - The exported service.properties - The properties of the exported service.
IExportServiceRecord.public IExportServiceRecordContainer createExportServiceRecordContainer()
IExportServiceRecordContainer.
IExportServiceRecordContainer.public IFileLog createFileLog(File file)
IFileLog.
file - The file.
IFileLog.
public IImportServiceRecord createImportServiceRecord(BundleContext bundleContext,
String name,
Filter filter)
IImportServiceRecord.
bundleContext - The BundleContext handle back to the
framework.name - The fully qualified type name of the imported
service.filter - The LDAP filter used to acquire the imported
service.
IImportServiceRecord.public IImportServiceRecordContainer createImportServiceRecordContainer()
IImportServiceRecordContainer.
IImportServiceRecordContainer.public ILineReader createLineReader(InputStream stream)
stream - The stream from which to read.
public ILineReader createLineReader(InputStream stream,
ILineReader.IAdvisor advisor)
stream - The stream from which to read.advisor - The reader's advisor.
public ILineReader createLineReader(InputStream stream,
int size)
stream - The stream from which to read.size - A hint to the size of the stream.
public ILineReader createLineReader(InputStream stream,
int size,
ILineReader.IAdvisor advisor)
stream - The stream from which to read.size - A hint to the size of the stream.advisor - The reader's advisor.
public ILineWriter createLineWriter(OutputStream stream)
stream - The stream to which to write.
public ILineWriter createLineWriter(OutputStream stream,
int size)
stream - The stream to which to write.size - A hint to the size of the stream.
public IManagedServiceFactoryActivationManager createManagedServiceFactoryActivationManager(String name,
IManagedServiceFactoryAdvisor advisor)
IManagedServiceFactoryActivationManager.
name - The name of the ManagedServiceFactory.advisor - The advisor for the ManagedServiceFactory.
IManagedServiceFactoryActivationManager.public IQueue createQueue(int capacity)
IQueue.
capacity - The initial capacity of the queue.
IQueue.
public IServiceDetecter createServiceDetecter(BundleContext bundleContext,
String name)
IServiceDetecter.
bundleContext - The BundleContext handle back to the
framework.name - The fully qualified type name of the imported
service.
IServiceDetecter.public IThreadLocal createThreadLocal()
IThreadLocal.
public IThreadLocal createThreadLocal(int size)
IThreadLocal.
size - The size of the IThreadLocal.
public ITokenizer createTokenizer(String value)
ITokenizer.
value - The text to tokenize.
public ITokenizer createTokenizer(String value,
char delimiter)
ITokenizer.
value - The text to tokenize.delimiter - The delimiter.
public ITokenizer createTokenizer(String value,
char delimiter,
int index)
ITokenizer.
value - The text to tokenize.delimiter - The delimiter.index - The index at which to start tokenizing the text.
public ITokenizer createTokenizer(String value,
int index)
ITokenizer.
value - The text to tokenize.index - The index at which to start tokenizing the text.
|
Service Activator Toolkit
Version 1.0.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright © 2001, 2007 IBM Corporation and others. All Rights Reserved.