本文整理汇总了Java中org.omg.PortableInterceptor.ORBInitializer类的典型用法代码示例。如果您正苦于以下问题:Java ORBInitializer类的具体用法?Java ORBInitializer怎么用?Java ORBInitializer使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ORBInitializer类属于org.omg.PortableInterceptor包,在下文中一共展示了ORBInitializer类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: preInitORBInitializers
import org.omg.PortableInterceptor.ORBInitializer; //导入依赖的package包/类
/**
* Call pre_init on all ORB initializers
*/
private void preInitORBInitializers( ORBInitInfoImpl info ) {
// Inform ORBInitInfo we are in pre_init stage
info.setStage( ORBInitInfoImpl.STAGE_PRE_INIT );
// Step through each initializer instantiation and call its
// pre_init. Ignore any exceptions.
for( int i = 0; i < orb.getORBData().getORBInitializers().length;
i++ ) {
ORBInitializer init = orb.getORBData().getORBInitializers()[i];
if( init != null ) {
try {
init.pre_init( info );
}
catch( Exception e ) {
// As per orbos/99-12-02, section 9.3.1.2, "If there are
// any exceptions, the ORB shall ignore them and proceed."
}
}
}
}
示例2: postInitORBInitializers
import org.omg.PortableInterceptor.ORBInitializer; //导入依赖的package包/类
/**
* Call post_init on all ORB initializers
*/
private void postInitORBInitializers( ORBInitInfoImpl info ) {
// Inform ORBInitInfo we are in post_init stage
info.setStage( ORBInitInfoImpl.STAGE_POST_INIT );
// Step through each initializer instantiation and call its post_init.
// Ignore any exceptions.
for( int i = 0; i < orb.getORBData().getORBInitializers().length;
i++ ) {
ORBInitializer init = orb.getORBData().getORBInitializers()[i];
if( init != null ) {
try {
init.post_init( info );
}
catch( Exception e ) {
// As per orbos/99-12-02, section 9.3.1.2, "If there are
// any exceptions, the ORB shall ignore them and proceed."
}
}
}
}
示例3: getORBInitializers
import org.omg.PortableInterceptor.ORBInitializer; //导入依赖的package包/类
public ORBInitializer[] getORBInitializers()
{
return orbInitializers ;
}
示例4: checkProperties
import org.omg.PortableInterceptor.ORBInitializer; //导入依赖的package包/类
/**
* Scan the given properties for the possible interceptors.
*/
private void checkProperties(Properties props)
{
if (props == null)
{
return;
}
Enumeration names = props.propertyNames();
java.lang.Object key;
String sk;
while (names.hasMoreElements())
{
key = names.nextElement();
if (key != null)
{
sk = key.toString();
if (sk.startsWith(m_prefix))
{
try
{
String cn = sk.substring(m_prefix.length());
Class iClass = ObjectCreator.forName(cn);
ORBInitializer initializer =
(ORBInitializer) iClass.newInstance();
m_initializers.add(initializer);
}
catch (Exception exc)
{
// OMG states we should not throw an exception, but
// this will help the user to detect his error
// in initialiser properties. Should never print during
// normal run.
System.err.println(sk + " failed");
}
}
}
}
}
示例5: checkProperties
import org.omg.PortableInterceptor.ORBInitializer; //导入依赖的package包/类
/**
* Scan the given properties for the possible interceptors.
*/
private void checkProperties(Properties props)
{
if (props == null)
{
return;
}
Enumeration names = props.propertyNames();
java.lang.Object key;
String sk;
while (names.hasMoreElements())
{
key = names.nextElement();
if (key != null)
{
sk = key.toString();
if (sk.startsWith(m_prefix))
{
try
{
String cn = sk.substring(m_prefix.length());
Class iClass = ObjectCreator.forName(cn);
ORBInitializer initializer =
(ORBInitializer) iClass.newInstance();
m_initializers.add(initializer);
}
catch (Exception exc)
{
// OMG states we should not throw an exception, but
// this will help the user to detect his error
// in initialiser properties. Should never print during
// normal run.
System.err.println(sk + " failed");
}
}
}
}
}
示例6: getORBInitializers
import org.omg.PortableInterceptor.ORBInitializer; //导入依赖的package包/类
public ORBInitializer[] getORBInitializers();