org.jacorb.notification
Class AbstractChannelFactory
java.lang.Object
org.jacorb.notification.AbstractChannelFactory
- All Implemented Interfaces:
- ManageableServant, org.picocontainer.Disposable
- Direct Known Subclasses:
- EventChannelFactoryImpl, TypedEventChannelFactoryImpl
public abstract class AbstractChannelFactory
- extends Object
- implements ManageableServant, Disposable
- Author:
- Alphonse Bendt
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
container_
protected final org.picocontainer.MutablePicoContainer container_
config_
protected final Configuration config_
thisRef_
protected final Object thisRef_
logger_
protected final org.slf4j.Logger logger_
AbstractChannelFactory
protected AbstractChannelFactory(org.picocontainer.MutablePicoContainer container,
ORB orb)
throws UserException
- Throws:
UserException
newEventChannel
protected abstract AbstractEventChannel newEventChannel()
throws ConfigurationException
- Throws:
ConfigurationException
create_abstract_channel
protected abstract Object create_abstract_channel(Property[] admin,
Property[] qos,
IntHolder id)
throws UnsupportedAdmin,
UnsupportedQoS
- Throws:
UnsupportedAdmin
UnsupportedQoS
getObjectName
protected abstract String getObjectName()
getShortcut
protected abstract String getShortcut()
getServant
protected abstract Servant getServant()
activate
public Object activate()
- Specified by:
activate in interface ManageableServant
setDestroyMethod
public void setDestroyMethod(Runnable destroyMethod)
getORB
protected ORB getORB()
deactivate
public final void deactivate()
- Specified by:
deactivate in interface ManageableServant
getConfiguration
protected Configuration getConfiguration()
dispose
public void dispose()
- Specified by:
dispose in interface org.picocontainer.Disposable
addToChannels
protected void addToChannels(int id,
AbstractEventChannel channel)
getAllChannels
protected int[] getAllChannels()
get_event_channel_servant
protected AbstractEventChannel get_event_channel_servant(int id)
throws ChannelNotFound
- Throws:
ChannelNotFound
getChannelIterator
protected Iterator getChannelIterator()
create_channel_servant
protected AbstractEventChannel create_channel_servant(IntHolder id,
Property[] qosProps,
Property[] adminProps)
throws UnsupportedAdmin,
UnsupportedQoS,
ConfigurationException
- Throws:
UnsupportedAdmin
UnsupportedQoS
ConfigurationException
channelCreated
protected void channelCreated(AbstractEventChannel channel)
destroy
public void destroy()
shutdown
public void shutdown(org.jacorb.notification.AbstractChannelFactory.ShutdownCallback cb)
- shutdown is called by the Java Wrapper
getIOR
public String getIOR()
getCorbaLoc
public String getCorbaLoc()
newFactory
public static AbstractChannelFactory newFactory(ORB optionalORB,
org.picocontainer.MutablePicoContainer optionalContainer,
Properties props)
throws Exception
- Throws:
Exception
newFactory
public static AbstractChannelFactory newFactory(Properties props)
throws Exception
- Throws:
Exception
registerName
public void registerName(Properties props)
throws Exception
- Throws:
Exception
registerName
public void registerName(String nameId,
String nameKind)
throws NotFound,
CannotProceed,
InvalidName,
InvalidName
- Throws:
NotFound
CannotProceed
InvalidName
unregisterName
public void unregisterName()
throws NotFound,
CannotProceed,
InvalidName
- Throws:
NotFound
CannotProceed
InvalidName
writeIOR
public void writeIOR(String fileName)
throws IOException
- Throws:
IOException
_default_POA
public POA _default_POA()
newContainerForChannel
protected org.picocontainer.MutablePicoContainer newContainerForChannel()
Copyright © 2015 JacORB. All rights reserved.