namingprovider.java

来自「实现了Jms的服务器源码,支持多种适配器,DB,FTP,支持多种数据库」· Java 代码 · 共 52 行

JAVA
52
字号
/*
 * Copyright (C) The Apache Software Foundation. All rights reserved.
 *
 * This software is published under the terms of the Apache Software License
 * version 1.1, a copy of which has been included with this distribution in
 * the LICENSE file.
 */
package org.apache.avalon.excalibur.naming;

import javax.naming.Context;
import javax.naming.Name;
import javax.naming.Binding;
import javax.naming.NameClassPair;
import javax.naming.NameParser;
import javax.naming.NamingException;

/**
 * The underlying communication interface for remote contexts.
 *
 * @author <a href="mailto:donaldp@apache.org">Peter Donald</a>
 * @version $Revision: 1.2 $
 */
public interface NamingProvider
{
    NameParser getNameParser()
        throws NamingException, Exception;

    void bind( Name name, String className, Object object )
        throws NamingException, Exception;

    void rebind( Name name, String className, Object object )
        throws NamingException, Exception;

    Context createSubcontext( Name name )
        throws NamingException, Exception;

    void destroySubcontext( Name name )
        throws NamingException, Exception;

    NameClassPair[] list( Name name )
        throws NamingException, Exception;

    Binding[] listBindings( Name name )
        throws NamingException, Exception;

    Object lookup( Name name )
        throws NamingException, Exception;

    void unbind( Name name )
        throws NamingException, Exception;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?