|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.iona.corbautil.PoaUtility | +--com.iona.corbautil.PoaUtilityPortableImpl
A class that simplifies the construction of POA hierarchies.
An instance of this class is created by calling
PoaUtility.init()
, subject to system properties having
appropriate values.
Field Summary | |
protected org.omg.CORBA.ORB |
m_orb
The ORB to which the created POAs belong. |
Fields inherited from class com.iona.corbautil.PoaUtility |
FIXED_PORTS_NO_IMR, FIXED_PORTS_WITH_IMR, RANDOM_PORTS_NO_IMR, RANDOM_PORTS_WITH_IMR |
Constructor Summary | |
PoaUtilityPortableImpl(org.omg.CORBA.ORB orb,
int deployModel)
This constructor is not intended to be called by "normal" user code. |
Method Summary | |
org.omg.PortableServer.POA |
createPoa(java.lang.String poaName,
org.omg.PortableServer.POA parentPoa,
com.iona.corbautil.LabelledPOAManager labelledMgr,
java.lang.String policiesStr)
Create a POA. |
com.iona.corbautil.LabelledPOAManager |
createPoaManager(java.lang.String label)
Create a POA Manager. |
protected org.omg.CORBA.Policy |
createPolicy(java.lang.String name,
java.lang.String policy_list_str)
Create a Policy object from the stringified name |
protected int |
deployModel()
Accessor method. |
protected boolean |
firstPoaMgr()
Accessor method. |
protected void |
firstPoaMgr(boolean val)
Modifier method for changing the value returned by firstPoaMgr() . |
org.omg.CORBA.ORB |
orb()
Accessor for the ORB. |
org.omg.PortableServer.POA |
root()
Accessor for the root POA. |
Methods inherited from class com.iona.corbautil.PoaUtility |
init, stringToDeploymentModel |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected org.omg.CORBA.ORB m_orb
Constructor Detail |
public PoaUtilityPortableImpl(org.omg.CORBA.ORB orb, int deployModel) throws PoaUtilityException
PoaUtility.init()
, subject to
system properties.
orb
- The ORB.Method Detail |
public org.omg.PortableServer.POA createPoa(java.lang.String poaName, org.omg.PortableServer.POA parentPoa, com.iona.corbautil.LabelledPOAManager labelledMgr, java.lang.String policiesStr) throws PoaUtilityException
createPoa
in class PoaUtility
poaName
- Name of the POA being createdparentPoa
- The parent POAlabelledMgr
- The (labelled) POA Manager (previously created
by calling createPoaManager()
policiesStr
- A string that lists the policies to be used
for the POA, for example,
"persistent + user_id + retain".
Individual policies are spelt just as in the
CORBA specification, except that they are
in lowercase. Any combination of spaces,
commas and/or plus-signs can be used as
separators between policy names.
PoaUtilityException
protected org.omg.CORBA.Policy createPolicy(java.lang.String name, java.lang.String policy_list_str) throws PoaUtilityException
name
- The name of a policy, for example,
"persistent", "user_id" or "retain".
The name of an individual policy is
identical to the spelling used in the
CORBA specification execept that it
is in lower-case.
PoaUtilityException
public com.iona.corbautil.LabelledPOAManager createPoaManager(java.lang.String label) throws PoaUtilityException
createPoaManager
in class PoaUtility
label
- A label (name) that is to be associated with
the newly created POA Manager. The first
time this method is called, it returns the
root POA. Subsequent calls cause it to create
a new POA Manager.
PoaUtilityException
public org.omg.PortableServer.POA root()
root
in class PoaUtility
public org.omg.CORBA.ORB orb()
protected boolean firstPoaMgr()
createPoaManager()
. After the first call of
createPoaManager()
, this method returns false.
protected int deployModel()
protected void firstPoaMgr(boolean val)
firstPoaMgr()
.
val
- The new value (true or false)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |