org.jacorb.notification
Class AbstractChannelFactory

java.lang.Object
  extended by 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

Field Summary
protected  Configuration config_
           
protected  org.picocontainer.MutablePicoContainer container_
           
protected  org.slf4j.Logger logger_
           
protected  Object thisRef_
           
 
Constructor Summary
protected AbstractChannelFactory(org.picocontainer.MutablePicoContainer container, ORB orb)
           
 
Method Summary
 POA _default_POA()
           
 Object activate()
           
protected  void addToChannels(int id, AbstractEventChannel channel)
           
protected  void channelCreated(AbstractEventChannel channel)
           
protected abstract  Object create_abstract_channel(Property[] admin, Property[] qos, IntHolder id)
           
protected  AbstractEventChannel create_channel_servant(IntHolder id, Property[] qosProps, Property[] adminProps)
           
 void deactivate()
           
 void destroy()
           
 void dispose()
           
protected  AbstractEventChannel get_event_channel_servant(int id)
           
protected  int[] getAllChannels()
           
protected  Iterator getChannelIterator()
           
protected  Configuration getConfiguration()
           
 String getCorbaLoc()
           
 String getIOR()
           
protected abstract  String getObjectName()
           
protected  ORB getORB()
           
protected abstract  Servant getServant()
           
protected abstract  String getShortcut()
           
protected  org.picocontainer.MutablePicoContainer newContainerForChannel()
           
protected abstract  AbstractEventChannel newEventChannel()
           
static AbstractChannelFactory newFactory(ORB optionalORB, org.picocontainer.MutablePicoContainer optionalContainer, Properties props)
           
static AbstractChannelFactory newFactory(Properties props)
           
 void registerName(Properties props)
           
 void registerName(String nameId, String nameKind)
           
 void setDestroyMethod(Runnable destroyMethod)
           
 void shutdown(org.jacorb.notification.AbstractChannelFactory.ShutdownCallback cb)
          shutdown is called by the Java Wrapper
 void unregisterName()
           
 void writeIOR(String fileName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

container_

protected final org.picocontainer.MutablePicoContainer container_

config_

protected final Configuration config_

thisRef_

protected final Object thisRef_

logger_

protected final org.slf4j.Logger logger_
Constructor Detail

AbstractChannelFactory

protected AbstractChannelFactory(org.picocontainer.MutablePicoContainer container,
                                 ORB orb)
                          throws UserException
Throws:
UserException
Method Detail

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.