public class AcceptorFactoryManager
extends com.streamscape.sef.network.mf.config.AbstractObjectFactoryManager
Title: Service Event Fabric Core
Description: Defines a manager for creation and managing of AcceptorFactory
objects.
Copyright: Copyright (c) 2010
Company: StreamScape Technologies
DEFAULT_SERIAL_VERSION_ID
Constructor and Description |
---|
AcceptorFactoryManager(RuntimeContext context) |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
boolean |
isFactoryRegistered(java.lang.String factoryName)
Checks if a factory having the specified name is registered.
|
java.util.List |
listRegisteredFactories()
Returns a list of registered factories.
|
AcceptorFactory |
lookupFactory(java.lang.String factoryName)
Finds and returns a factory having the specified name.
|
void |
registerFactory(java.lang.String factoryName,
java.lang.Class factoryClass)
Registers a new factory of the specified class.
|
void |
start()
Starts a work of the manager (starts all factories).
|
void |
stop()
Stop a work of the manager (stops all factories).
|
void |
unregisterFactory(java.lang.String factoryName)
Unregisters a factory having the specified name.
|
getContextType, hasContext
clone, getSerialVersionUID
public AcceptorFactoryManager(RuntimeContext context) throws AcceptorFactoryManagerException
AcceptorFactoryManagerException
public void start() throws AcceptorException
AcceptorException
public void stop()
public void registerFactory(java.lang.String factoryName, java.lang.Class factoryClass) throws AcceptorFactoryManagerException
factoryName
- the name of a factory to be registered.factoryClass
- the class of a factory to be registered.AcceptorFactoryManagerException
- if some error occurs during the registration.public void unregisterFactory(java.lang.String factoryName) throws AcceptorFactoryManagerException
factoryName
- the name of factory to be unregistered.AcceptorFactoryManagerException
- if some error occurs during the unregistration.public boolean isFactoryRegistered(java.lang.String factoryName)
isFactoryRegistered
in class com.streamscape.sef.network.mf.config.AbstractObjectFactoryManager
factoryName
- the name of checked factory.true
if a factory is registered, false
otherwise.public java.util.List listRegisteredFactories()
listRegisteredFactories
in class com.streamscape.sef.network.mf.config.AbstractObjectFactoryManager
public AcceptorFactory lookupFactory(java.lang.String factoryName)
lookupFactory
in class com.streamscape.sef.network.mf.config.AbstractObjectFactoryManager
factoryName
- the name of factory which is to be found.null if factory is not found.
public void destroy() throws AcceptorFactoryManagerException
AcceptorFactoryManagerException
Copyright © 2015-2024 StreamScape Technologies. All rights reserved.