• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java ClosureFactory类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.sun.corba.se.spi.orbutil.closure.ClosureFactory的典型用法代码示例。如果您正苦于以下问题:Java ClosureFactory类的具体用法?Java ClosureFactory怎么用?Java ClosureFactory使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



ClosureFactory类属于com.sun.corba.se.spi.orbutil.closure包,在下文中一共展示了ClosureFactory类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: init

import com.sun.corba.se.spi.orbutil.closure.ClosureFactory; //导入依赖的package包/类
public void init( ORB orb )
{
    this.orb = orb ;
    wrapper = POASystemException.get( orb,
        CORBALogDomains.OA_LIFECYCLE ) ;
    omgWrapper = OMGSystemException.get( orb,
        CORBALogDomains.OA_LIFECYCLE ) ;
    delegateImpl = new DelegateImpl( orb, this ) ;
    registerRootPOA() ;

    POACurrent poaCurrent = new POACurrent(orb);
    orb.getLocalResolver().register( ORBConstants.POA_CURRENT_NAME,
        ClosureFactory.makeConstant( poaCurrent ) ) ;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:15,代码来源:POAFactory.java


示例2: registerRootPOA

import com.sun.corba.se.spi.orbutil.closure.ClosureFactory; //导入依赖的package包/类
public void registerRootPOA()
{
    // We delay the evaluation of makeRootPOA until
    // a call to resolve_initial_references( "RootPOA" ).
    // The Future guarantees that makeRootPOA is only called once.
    Closure rpClosure = new Closure() {
        public Object evaluate() {
            return POAImpl.makeRootPOA( orb ) ;
        }
    } ;

    orb.getLocalResolver().register( ORBConstants.ROOT_POA_NAME,
        ClosureFactory.makeFuture( rpClosure ) ) ;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:15,代码来源:POAFactory.java


示例3: PIHandlerImpl

import com.sun.corba.se.spi.orbutil.closure.ClosureFactory; //导入依赖的package包/类
public PIHandlerImpl( ORB orb, String[] args ) {
    this.orb = orb ;
    wrapper = InterceptorsSystemException.get( orb,
        CORBALogDomains.RPC_PROTOCOL ) ;
    orbutilWrapper = ORBUtilSystemException.get( orb,
        CORBALogDomains.RPC_PROTOCOL ) ;
    omgWrapper = OMGSystemException.get( orb,
        CORBALogDomains.RPC_PROTOCOL ) ;
    arguments = args ;

    // Create codec factory:
    codecFactory = new CodecFactoryImpl( orb );

    // Create new interceptor list:
    interceptorList = new InterceptorList( wrapper );

    // Create a new PICurrent.
    current = new PICurrent( orb );

    // Create new interceptor invoker, initially disabled:
    interceptorInvoker = new InterceptorInvoker( orb, interceptorList,
                                                 current );

    // Register the PI current and Codec factory objects
    orb.getLocalResolver().register( ORBConstants.PI_CURRENT_NAME,
        ClosureFactory.makeConstant( current ) ) ;
    orb.getLocalResolver().register( ORBConstants.CODEC_FACTORY_NAME,
        ClosureFactory.makeConstant( codecFactory ) ) ;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:30,代码来源:PIHandlerImpl.java


示例4: registerInitialReferences

import com.sun.corba.se.spi.orbutil.closure.ClosureFactory; //导入依赖的package包/类
private void registerInitialReferences( final ORB orb )
{
    // Register the Dynamic Any factory
    Closure closure = new Closure() {
        public java.lang.Object evaluate() {
            return new DynAnyFactoryImpl( orb ) ;
        }
    } ;

    Closure future = ClosureFactory.makeFuture( closure ) ;
    orb.getLocalResolver().register( ORBConstants.DYN_ANY_FACTORY_NAME,
        future ) ;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:14,代码来源:ORBConfiguratorImpl.java


示例5: register_initial_reference

import com.sun.corba.se.spi.orbutil.closure.ClosureFactory; //导入依赖的package包/类
/**
 * If this operation is called with an id, <code>"Y"</code>, and an
 * object, <code>YY</code>, then a subsequent call to
 * <code>ORB.resolve_initial_references( "Y" )</code> will
 * return object <code>YY</code>.
 *
 * @param id The ID by which the initial reference will be known.
 * @param obj The initial reference itself.
 * @throws InvalidName if this operation is called with an empty string id
 *     or this operation is called with an id that is already registered,
 *     including the default names defined by OMG.
 * @throws BAD_PARAM if the obj parameter is null.
 */
public void register_initial_reference(
    String id, org.omg.CORBA.Object obj ) throws InvalidName
{
    CorbaServerRequestDispatcher insnd ;

    synchronized (this) {
        checkShutdownState();
    }

    if ((id == null) || (id.length() == 0))
        throw new InvalidName() ;

    synchronized (this) {
        checkShutdownState();
    }

    synchronized (resolverLock) {
        insnd = insNamingDelegate ;

        java.lang.Object obj2 = localResolver.resolve( id ) ;
        if (obj2 != null)
            throw new InvalidName(id + " already registered") ;

        localResolver.register( id, ClosureFactory.makeConstant( obj )) ;
    }

    synchronized (this) {
        if (StubAdapter.isStub(obj))
            // Make all remote object references available for INS.
            requestDispatcherRegistry.registerServerRequestDispatcher(
                insnd, id ) ;
    }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:47,代码来源:ORBImpl.java


示例6: register_initial_reference

import com.sun.corba.se.spi.orbutil.closure.ClosureFactory; //导入依赖的package包/类
/**
 * If this operation is called with an id, <code>"Y"</code>, and an
 * object, <code>YY</code>, then a subsequent call to
 * <code>ORB.resolve_initial_references( "Y" )</code> will
 * return object <code>YY</code>.
 *
 * @param id The ID by which the initial reference will be known.
 * @param obj The initial reference itself.
 * @throws InvalidName if this operation is called with an empty string id
 *     or this operation is called with an id that is already registered,
 *     including the default names defined by OMG.
 * @throws BAD_PARAM if the obj parameter is null.
 */
public void register_initial_reference(
    String id, org.omg.CORBA.Object obj ) throws InvalidName
{
    CorbaServerRequestDispatcher insnd ;

    if ((id == null) || (id.length() == 0))
        throw new InvalidName() ;

    synchronized (this) {
        checkShutdownState();
    }

    synchronized (resolverLock) {
        insnd = insNamingDelegate ;

        java.lang.Object obj2 = localResolver.resolve( id ) ;
        if (obj2 != null)
            throw new InvalidName(id + " already registered") ;

        localResolver.register( id, ClosureFactory.makeConstant( obj )) ;
    }

    synchronized (this) {
        if (StubAdapter.isStub(obj))
            // Make all remote object references available for INS.
            requestDispatcherRegistry.registerServerRequestDispatcher(
                insnd, id ) ;
    }
}
 
开发者ID:aducode,项目名称:openjdk-source-code-learn,代码行数:43,代码来源:ORBImpl.java



注:本文中的com.sun.corba.se.spi.orbutil.closure.ClosureFactory类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java PropertiesProxy类代码示例发布时间:2022-05-22
下一篇:
Java CacheEntryRemoved类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap