org.mobicents.slee.resource.parlay.util.corba
Class ServantActivationHelper

java.lang.Object
  extended by org.mobicents.slee.resource.parlay.util.corba.ServantActivationHelper

public class ServantActivationHelper
extends java.lang.Object

Class Description for ServantActivationHelper


Constructor Summary
ServantActivationHelper()
           
 
Method Summary
static org.omg.CORBA.Object activateServant(org.omg.PortableServer.POA poa, org.omg.PortableServer.Servant servant)
          Activates the provided servant on the specified poa.
static org.omg.CORBA.Object activateServantWithID(org.omg.PortableServer.POA poa, org.omg.PortableServer.Servant servant, byte[] oid)
          Activates the provided servant on the specified poa.
static void deactivateServant(org.omg.PortableServer.POA poa, byte[] oid)
          Deactivates the provided servant.
static void deactivateServant(org.omg.PortableServer.Servant servant)
          Deactivates the provided servant.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServantActivationHelper

public ServantActivationHelper()
Method Detail

activateServantWithID

public static org.omg.CORBA.Object activateServantWithID(org.omg.PortableServer.POA poa,
                                                         org.omg.PortableServer.Servant servant,
                                                         byte[] oid)
                                                  throws org.omg.PortableServer.POAPackage.ServantAlreadyActive,
                                                         org.omg.PortableServer.POAPackage.ObjectAlreadyActive,
                                                         org.omg.PortableServer.POAPackage.WrongPolicy
Activates the provided servant on the specified poa.

Parameters:
poa -
servant -
oid -
Returns:
@throws ServantAlreadyActive
Throws:
org.omg.PortableServer.POAPackage.ObjectAlreadyActive
org.omg.PortableServer.POAPackage.WrongPolicy
org.omg.PortableServer.POAPackage.ServantAlreadyActive

activateServant

public static org.omg.CORBA.Object activateServant(org.omg.PortableServer.POA poa,
                                                   org.omg.PortableServer.Servant servant)
                                            throws org.omg.PortableServer.POAPackage.ServantAlreadyActive,
                                                   org.omg.PortableServer.POAPackage.ObjectAlreadyActive,
                                                   org.omg.PortableServer.POAPackage.WrongPolicy
Activates the provided servant on the specified poa.

Parameters:
poa -
servant -
Returns:
@throws ServantAlreadyActive
Throws:
org.omg.PortableServer.POAPackage.ObjectAlreadyActive
org.omg.PortableServer.POAPackage.WrongPolicy
org.omg.PortableServer.POAPackage.ServantAlreadyActive

deactivateServant

public static void deactivateServant(org.omg.PortableServer.Servant servant)
                              throws org.omg.PortableServer.POAPackage.ObjectNotActive,
                                     org.omg.PortableServer.POAPackage.WrongPolicy,
                                     org.omg.PortableServer.POAPackage.ServantNotActive
Deactivates the provided servant.

Parameters:
servant -
Throws:
org.omg.PortableServer.POAPackage.ObjectNotActive
org.omg.PortableServer.POAPackage.WrongPolicy
org.omg.PortableServer.POAPackage.ServantNotActive

deactivateServant

public static void deactivateServant(org.omg.PortableServer.POA poa,
                                     byte[] oid)
                              throws org.omg.PortableServer.POAPackage.ObjectNotActive,
                                     org.omg.PortableServer.POAPackage.WrongPolicy
Deactivates the provided servant.

Parameters:
poa -
oid -
Throws:
org.omg.PortableServer.POAPackage.ObjectNotActive
org.omg.PortableServer.POAPackage.WrongPolicy


Copyright © 2009. All Rights Reserved.