|
Service Activator Toolkit
Version 1.1.0 (20081206) |
||||||||
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
public final class 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 . |
IBundleActivationManager |
createBundleActivationManager(String id)
Create an IBundleActivationManager . |
ICharBuffer |
createCharBuffer(int initialCapacity)
Create a char buffer with the specified initial capacity. |
LogService |
createConsoleLog()
Create a console log. |
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(BundleContext bundleContext,
Class interfaceType,
IProxyServiceHandler handler,
Dictionary properties)
Create an IExportProxyServiceRecord with properties that
implements multiple interfaces. |
IExportServiceRecord |
createExportServiceRecord(BundleContext bundleContext,
String[] names,
Object service,
Dictionary properties)
Create an IExportServiceRecord . |
IExportServiceRecord |
createExportServiceRecord(BundleContext bundleContext,
String name,
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. |
ILineReader |
createLineReader(InputStream stream,
String characterEncoding)
Create a line reader. |
ILineReader |
createLineReader(InputStream stream,
String characterEncoding,
ILineReader.IAdvisor advisor)
Create a line reader. |
ILineReader |
createLineReader(InputStream stream,
String characterEncoding,
int size)
Create a line reader. |
ILineReader |
createLineReader(InputStream stream,
String characterEncoding,
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. |
ILineWriter |
createLineWriter(OutputStream stream,
String characterEncoding)
Create a line writer. |
ILineWriter |
createLineWriter(OutputStream stream,
String characterEncoding,
int size)
Create a line writer. |
IManagedServiceActivationManager |
createManagedServiceActivationManager(IManagedServiceAdvisor advisor)
Create an IManagedServiceActivationManager . |
IManagedServiceFactoryActivationManager |
createManagedServiceFactoryActivationManager(String name,
IManagedServiceFactoryAdvisor advisor)
Create an IManagedServiceFactoryActivationManager . |
IManagedServiceFactoryActivationManager |
createManagedServiceFactoryActivationManager(String name,
IManagedServiceFactoryAdvisor advisor,
int numberOfConfigurationsHint)
Create an IManagedServiceFactoryActivationManager . |
IQueue |
createQueue(int capacity)
Create an IQueue . |
IServiceDetecter |
createServiceDetecter(BundleContext bundleContext,
String name)
Create an IServiceDetecter . |
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.
FactoryUtility
public IBundleActivationManager createBundleActivationManager()
IBundleActivationManager
.
IBundleActivationManager
.public IBundleActivationManager createBundleActivationManager(String id)
IBundleActivationManager
.
id
- The id of the IBundleActivationManager
.
IBundleActivationManager
.public ICharBuffer createCharBuffer(int initialCapacity)
initialCapacity
- The initial capacity of the buffer.
ICharBuffer
.public LogService createConsoleLog()
LogService
.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 interfaceType, IProxyServiceHandler handler, Dictionary properties)
IExportProxyServiceRecord
with properties that
implements multiple interfaces.
bundleContext
- The BundleContext
handle back to the
framework.interfaceType
- The interface type 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(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 IExportServiceRecord createExportServiceRecord(BundleContext bundleContext, String name, Object service, Dictionary properties)
IExportServiceRecord
.
bundleContext
- The BundleContext
handle back to the
framework.name
- The fully qualified type name of the exported
service.service
- The exported service.properties
- The properties of the exported service.
IExportServiceRecord
.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 ILineReader createLineReader(InputStream stream, String characterEncoding)
stream
- The stream from which to read.characterEncoding
- The character encoding to use.
public ILineReader createLineReader(InputStream stream, String characterEncoding, ILineReader.IAdvisor advisor)
stream
- The stream from which to read.characterEncoding
- The character encoding to use.advisor
- The reader's advisor.
public ILineReader createLineReader(InputStream stream, String characterEncoding, int size)
stream
- The stream from which to read.characterEncoding
- The character encoding to use.size
- A hint to the size of the stream.
public ILineReader createLineReader(InputStream stream, String characterEncoding, int size, ILineReader.IAdvisor advisor)
stream
- The stream from which to read.characterEncoding
- The character encoding to use.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 ILineWriter createLineWriter(OutputStream stream, String characterEncoding)
stream
- The stream to which to write.characterEncoding
- The character encoding to use.
public ILineWriter createLineWriter(OutputStream stream, String characterEncoding, int size)
stream
- The stream to which to write.characterEncoding
- The character encoding to use.size
- A hint to the size of the stream.
public IManagedServiceActivationManager createManagedServiceActivationManager(IManagedServiceAdvisor advisor)
IManagedServiceActivationManager
.
advisor
- The advisor for the ManagedService
.
IManagedServiceActivationManager
.public IManagedServiceFactoryActivationManager createManagedServiceFactoryActivationManager(String name, IManagedServiceFactoryAdvisor advisor)
IManagedServiceFactoryActivationManager
.
name
- The name of the ManagedServiceFactory
.advisor
- The advisor for the ManagedServiceFactory
.
IManagedServiceFactoryActivationManager
.public IManagedServiceFactoryActivationManager createManagedServiceFactoryActivationManager(String name, IManagedServiceFactoryAdvisor advisor, int numberOfConfigurationsHint)
IManagedServiceFactoryActivationManager
.
name
- The name of the
ManagedServiceFactory
.advisor
- The advisor for the
ManagedServiceFactory
.numberOfConfigurationsHint
- A hint to the number of
configurations.
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 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.1.0 (20081206) |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2001, 2008 IBM Corporation and others. All Rights Reserved.