Java Code Examples for com.sun.corba.se.spi.resolver.Resolver

The following are top voted examples for showing how to use com.sun.corba.se.spi.resolver.Resolver. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to generate more good examples.
Example 1
Project: OpenJSharp   File: ORBConfiguratorImpl.java   View source code 6 votes vote down vote up
private void initializeNaming( ORB orb )
{
    LocalResolver localResolver = ResolverDefault.makeLocalResolver() ;
    orb.setLocalResolver( localResolver ) ;

    Resolver bootResolver = ResolverDefault.makeBootstrapResolver( orb,
        orb.getORBData().getORBInitialHost(),
        orb.getORBData().getORBInitialPort() ) ;

    Operation urlOperation = ResolverDefault.makeINSURLOperation( orb,
        bootResolver ) ;
    orb.setURLOperation( urlOperation ) ;

    Resolver irResolver = ResolverDefault.makeORBInitRefResolver( urlOperation,
        orb.getORBData().getORBInitialReferences() ) ;

    Resolver dirResolver = ResolverDefault.makeORBDefaultInitRefResolver(
        urlOperation, orb.getORBData().getORBDefaultInitialReference() ) ;

    Resolver resolver =
        ResolverDefault.makeCompositeResolver( localResolver,
            ResolverDefault.makeCompositeResolver( irResolver,
                ResolverDefault.makeCompositeResolver( dirResolver,
                    bootResolver ) ) ) ;
    orb.setResolver( resolver ) ;
}
 
Example 2
Project: OpenJSharp   File: ORBImpl.java   View source code 6 votes vote down vote up
/**
 * Resolve the stringified reference of one of the initially
 * available CORBA services.
 * @param identifier The stringified object reference of the
 * desired service.
 * @return An object reference for the desired service.
 * @exception InvalidName The supplied identifier is not associated
 * with a known service.
 * @exception SystemException One of a fixed set of Corba system exceptions.
 */
public org.omg.CORBA.Object resolve_initial_references(
    String identifier) throws InvalidName
{
    Resolver res ;

    synchronized( this ) {
        checkShutdownState();
        res = resolver ;
    }

    synchronized (resolverLock) {
        org.omg.CORBA.Object result = res.resolve( identifier ) ;

        if (result == null)
            throw new InvalidName() ;
        else
            return result ;
    }
}
 
Example 3
Project: openjdk-jdk10   File: ORBConfiguratorImpl.java   View source code 6 votes vote down vote up
private void initializeNaming( ORB orb )
{
    LocalResolver localResolver = ResolverDefault.makeLocalResolver() ;
    orb.setLocalResolver( localResolver ) ;

    Resolver bootResolver = ResolverDefault.makeBootstrapResolver( orb,
        orb.getORBData().getORBInitialHost(),
        orb.getORBData().getORBInitialPort() ) ;

    Operation urlOperation = ResolverDefault.makeINSURLOperation( orb,
        bootResolver ) ;
    orb.setURLOperation( urlOperation ) ;

    Resolver irResolver = ResolverDefault.makeORBInitRefResolver( urlOperation,
        orb.getORBData().getORBInitialReferences() ) ;

    Resolver dirResolver = ResolverDefault.makeORBDefaultInitRefResolver(
        urlOperation, orb.getORBData().getORBDefaultInitialReference() ) ;

    Resolver resolver =
        ResolverDefault.makeCompositeResolver( localResolver,
            ResolverDefault.makeCompositeResolver( irResolver,
                ResolverDefault.makeCompositeResolver( dirResolver,
                    bootResolver ) ) ) ;
    orb.setResolver( resolver ) ;
}
 
Example 4
Project: openjdk-jdk10   File: ORBImpl.java   View source code 6 votes vote down vote up
/**
 * Resolve the stringified reference of one of the initially
 * available CORBA services.
 * @param identifier The stringified object reference of the
 * desired service.
 * @return An object reference for the desired service.
 * @exception InvalidName The supplied identifier is not associated
 * with a known service.
 * @exception SystemException One of a fixed set of Corba system exceptions.
 */
public org.omg.CORBA.Object resolve_initial_references(
    String identifier) throws InvalidName
{
    Resolver res ;

    synchronized( this ) {
        checkShutdownState();
        res = resolver ;
    }

    synchronized (resolverLock) {
        org.omg.CORBA.Object result = res.resolve( identifier ) ;

        if (result == null)
            throw new InvalidName() ;
        else
            return result ;
    }
}
 
Example 5
Project: openjdk9   File: ORBConfiguratorImpl.java   View source code 6 votes vote down vote up
private void initializeNaming( ORB orb )
{
    LocalResolver localResolver = ResolverDefault.makeLocalResolver() ;
    orb.setLocalResolver( localResolver ) ;

    Resolver bootResolver = ResolverDefault.makeBootstrapResolver( orb,
        orb.getORBData().getORBInitialHost(),
        orb.getORBData().getORBInitialPort() ) ;

    Operation urlOperation = ResolverDefault.makeINSURLOperation( orb,
        bootResolver ) ;
    orb.setURLOperation( urlOperation ) ;

    Resolver irResolver = ResolverDefault.makeORBInitRefResolver( urlOperation,
        orb.getORBData().getORBInitialReferences() ) ;

    Resolver dirResolver = ResolverDefault.makeORBDefaultInitRefResolver(
        urlOperation, orb.getORBData().getORBDefaultInitialReference() ) ;

    Resolver resolver =
        ResolverDefault.makeCompositeResolver( localResolver,
            ResolverDefault.makeCompositeResolver( irResolver,
                ResolverDefault.makeCompositeResolver( dirResolver,
                    bootResolver ) ) ) ;
    orb.setResolver( resolver ) ;
}
 
Example 6
Project: openjdk9   File: ORBImpl.java   View source code 6 votes vote down vote up
/**
 * Resolve the stringified reference of one of the initially
 * available CORBA services.
 * @param identifier The stringified object reference of the
 * desired service.
 * @return An object reference for the desired service.
 * @exception InvalidName The supplied identifier is not associated
 * with a known service.
 * @exception SystemException One of a fixed set of Corba system exceptions.
 */
public org.omg.CORBA.Object resolve_initial_references(
    String identifier) throws InvalidName
{
    Resolver res ;

    synchronized( this ) {
        checkShutdownState();
        res = resolver ;
    }

    synchronized (resolverLock) {
        org.omg.CORBA.Object result = res.resolve( identifier ) ;

        if (result == null)
            throw new InvalidName() ;
        else
            return result ;
    }
}
 
Example 7
Project: lookaside_java-1.8.0-openjdk   File: ORBConfiguratorImpl.java   View source code 6 votes vote down vote up
private void initializeNaming( ORB orb )
{
    LocalResolver localResolver = ResolverDefault.makeLocalResolver() ;
    orb.setLocalResolver( localResolver ) ;

    Resolver bootResolver = ResolverDefault.makeBootstrapResolver( orb,
        orb.getORBData().getORBInitialHost(),
        orb.getORBData().getORBInitialPort() ) ;

    Operation urlOperation = ResolverDefault.makeINSURLOperation( orb,
        bootResolver ) ;
    orb.setURLOperation( urlOperation ) ;

    Resolver irResolver = ResolverDefault.makeORBInitRefResolver( urlOperation,
        orb.getORBData().getORBInitialReferences() ) ;

    Resolver dirResolver = ResolverDefault.makeORBDefaultInitRefResolver(
        urlOperation, orb.getORBData().getORBDefaultInitialReference() ) ;

    Resolver resolver =
        ResolverDefault.makeCompositeResolver( localResolver,
            ResolverDefault.makeCompositeResolver( irResolver,
                ResolverDefault.makeCompositeResolver( dirResolver,
                    bootResolver ) ) ) ;
    orb.setResolver( resolver ) ;
}
 
Example 8
Project: lookaside_java-1.8.0-openjdk   File: ORBImpl.java   View source code 6 votes vote down vote up
/**
 * Resolve the stringified reference of one of the initially
 * available CORBA services.
 * @param identifier The stringified object reference of the
 * desired service.
 * @return An object reference for the desired service.
 * @exception InvalidName The supplied identifier is not associated
 * with a known service.
 * @exception SystemException One of a fixed set of Corba system exceptions.
 */
public org.omg.CORBA.Object resolve_initial_references(
    String identifier) throws InvalidName
{
    Resolver res ;

    synchronized( this ) {
        checkShutdownState();
        res = resolver ;
    }

    synchronized (resolverLock) {
        org.omg.CORBA.Object result = res.resolve( identifier ) ;

        if (result == null)
            throw new InvalidName() ;
        else
            return result ;
    }
}
 
Example 9
Project: jdk8u_corba   File: ORBConfiguratorImpl.java   View source code 6 votes vote down vote up
private void initializeNaming( ORB orb )
{
    LocalResolver localResolver = ResolverDefault.makeLocalResolver() ;
    orb.setLocalResolver( localResolver ) ;

    Resolver bootResolver = ResolverDefault.makeBootstrapResolver( orb,
        orb.getORBData().getORBInitialHost(),
        orb.getORBData().getORBInitialPort() ) ;

    Operation urlOperation = ResolverDefault.makeINSURLOperation( orb,
        bootResolver ) ;
    orb.setURLOperation( urlOperation ) ;

    Resolver irResolver = ResolverDefault.makeORBInitRefResolver( urlOperation,
        orb.getORBData().getORBInitialReferences() ) ;

    Resolver dirResolver = ResolverDefault.makeORBDefaultInitRefResolver(
        urlOperation, orb.getORBData().getORBDefaultInitialReference() ) ;

    Resolver resolver =
        ResolverDefault.makeCompositeResolver( localResolver,
            ResolverDefault.makeCompositeResolver( irResolver,
                ResolverDefault.makeCompositeResolver( dirResolver,
                    bootResolver ) ) ) ;
    orb.setResolver( resolver ) ;
}
 
Example 10
Project: jdk8u_corba   File: ORBImpl.java   View source code 6 votes vote down vote up
/**
 * Resolve the stringified reference of one of the initially
 * available CORBA services.
 * @param identifier The stringified object reference of the
 * desired service.
 * @return An object reference for the desired service.
 * @exception InvalidName The supplied identifier is not associated
 * with a known service.
 * @exception SystemException One of a fixed set of Corba system exceptions.
 */
public org.omg.CORBA.Object resolve_initial_references(
    String identifier) throws InvalidName
{
    Resolver res ;

    synchronized( this ) {
        checkShutdownState();
        res = resolver ;
    }

    synchronized (resolverLock) {
        org.omg.CORBA.Object result = res.resolve( identifier ) ;

        if (result == null)
            throw new InvalidName() ;
        else
            return result ;
    }
}
 
Example 11
Project: infobip-open-jdk-8   File: ORBConfiguratorImpl.java   View source code 6 votes vote down vote up
private void initializeNaming( ORB orb )
{
    LocalResolver localResolver = ResolverDefault.makeLocalResolver() ;
    orb.setLocalResolver( localResolver ) ;

    Resolver bootResolver = ResolverDefault.makeBootstrapResolver( orb,
        orb.getORBData().getORBInitialHost(),
        orb.getORBData().getORBInitialPort() ) ;

    Operation urlOperation = ResolverDefault.makeINSURLOperation( orb,
        bootResolver ) ;
    orb.setURLOperation( urlOperation ) ;

    Resolver irResolver = ResolverDefault.makeORBInitRefResolver( urlOperation,
        orb.getORBData().getORBInitialReferences() ) ;

    Resolver dirResolver = ResolverDefault.makeORBDefaultInitRefResolver(
        urlOperation, orb.getORBData().getORBDefaultInitialReference() ) ;

    Resolver resolver =
        ResolverDefault.makeCompositeResolver( localResolver,
            ResolverDefault.makeCompositeResolver( irResolver,
                ResolverDefault.makeCompositeResolver( dirResolver,
                    bootResolver ) ) ) ;
    orb.setResolver( resolver ) ;
}
 
Example 12
Project: infobip-open-jdk-8   File: ORBImpl.java   View source code 6 votes vote down vote up
/**
 * Resolve the stringified reference of one of the initially
 * available CORBA services.
 * @param identifier The stringified object reference of the
 * desired service.
 * @return An object reference for the desired service.
 * @exception InvalidName The supplied identifier is not associated
 * with a known service.
 * @exception SystemException One of a fixed set of Corba system exceptions.
 */
public org.omg.CORBA.Object resolve_initial_references(
    String identifier) throws InvalidName
{
    Resolver res ;

    synchronized( this ) {
        checkShutdownState();
        res = resolver ;
    }

    synchronized (resolverLock) {
        org.omg.CORBA.Object result = res.resolve( identifier ) ;

        if (result == null)
            throw new InvalidName() ;
        else
            return result ;
    }
}
 
Example 13
Project: openjdk-source-code-learn   File: ORBConfiguratorImpl.java   View source code 6 votes vote down vote up
private void initializeNaming( ORB orb )
{
    LocalResolver localResolver = ResolverDefault.makeLocalResolver() ;
    orb.setLocalResolver( localResolver ) ;

    Resolver bootResolver = ResolverDefault.makeBootstrapResolver( orb,
        orb.getORBData().getORBInitialHost(),
        orb.getORBData().getORBInitialPort() ) ;

    Operation urlOperation = ResolverDefault.makeINSURLOperation( orb,
        bootResolver ) ;
    orb.setURLOperation( urlOperation ) ;

    Resolver irResolver = ResolverDefault.makeORBInitRefResolver( urlOperation,
        orb.getORBData().getORBInitialReferences() ) ;

    Resolver dirResolver = ResolverDefault.makeORBDefaultInitRefResolver(
        urlOperation, orb.getORBData().getORBDefaultInitialReference() ) ;

    Resolver resolver =
        ResolverDefault.makeCompositeResolver( localResolver,
            ResolverDefault.makeCompositeResolver( irResolver,
                ResolverDefault.makeCompositeResolver( dirResolver,
                    bootResolver ) ) ) ;
    orb.setResolver( resolver ) ;
}
 
Example 14
Project: openjdk-source-code-learn   File: ORBImpl.java   View source code 6 votes vote down vote up
/**
 * Resolve the stringified reference of one of the initially
 * available CORBA services.
 * @param identifier The stringified object reference of the
 * desired service.
 * @return An object reference for the desired service.
 * @exception InvalidName The supplied identifier is not associated
 * with a known service.
 * @exception SystemException One of a fixed set of Corba system exceptions.
 */
public org.omg.CORBA.Object resolve_initial_references(
    String identifier) throws InvalidName
{
    Resolver res ;

    synchronized( this ) {
        checkShutdownState();
        res = resolver ;
    }

    synchronized (resolverLock) {
        org.omg.CORBA.Object result = res.resolve( identifier ) ;

        if (result == null)
            throw new InvalidName() ;
        else
            return result ;
    }
}
 
Example 15
Project: OLD-OpenJDK8   File: ORBConfiguratorImpl.java   View source code 6 votes vote down vote up
private void initializeNaming( ORB orb )
{
    LocalResolver localResolver = ResolverDefault.makeLocalResolver() ;
    orb.setLocalResolver( localResolver ) ;

    Resolver bootResolver = ResolverDefault.makeBootstrapResolver( orb,
        orb.getORBData().getORBInitialHost(),
        orb.getORBData().getORBInitialPort() ) ;

    Operation urlOperation = ResolverDefault.makeINSURLOperation( orb,
        bootResolver ) ;
    orb.setURLOperation( urlOperation ) ;

    Resolver irResolver = ResolverDefault.makeORBInitRefResolver( urlOperation,
        orb.getORBData().getORBInitialReferences() ) ;

    Resolver dirResolver = ResolverDefault.makeORBDefaultInitRefResolver(
        urlOperation, orb.getORBData().getORBDefaultInitialReference() ) ;

    Resolver resolver =
        ResolverDefault.makeCompositeResolver( localResolver,
            ResolverDefault.makeCompositeResolver( irResolver,
                ResolverDefault.makeCompositeResolver( dirResolver,
                    bootResolver ) ) ) ;
    orb.setResolver( resolver ) ;
}
 
Example 16
Project: OLD-OpenJDK8   File: ORBImpl.java   View source code 6 votes vote down vote up
/**
 * Resolve the stringified reference of one of the initially
 * available CORBA services.
 * @param identifier The stringified object reference of the
 * desired service.
 * @return An object reference for the desired service.
 * @exception InvalidName The supplied identifier is not associated
 * with a known service.
 * @exception SystemException One of a fixed set of Corba system exceptions.
 */
public org.omg.CORBA.Object resolve_initial_references(
    String identifier) throws InvalidName
{
    Resolver res ;

    synchronized( this ) {
        checkShutdownState();
        res = resolver ;
    }

    synchronized (resolverLock) {
        org.omg.CORBA.Object result = res.resolve( identifier ) ;

        if (result == null)
            throw new InvalidName() ;
        else
            return result ;
    }
}
 
Example 17
Project: openjdk-orb   File: ORBImpl.java   View source code 6 votes vote down vote up
/**
 * Resolve the stringified reference of one of the initially
 * available CORBA services.
 * @param identifier The stringified object reference of the
 * desired service.
 * @return An object reference for the desired service.
 * @exception InvalidName The supplied identifier is not associated
 * with a known service.
 * @exception SystemException One of a fixed set of Corba system exceptions.
 */
public org.omg.CORBA.Object resolve_initial_references(
    String identifier) throws InvalidName
{
    Resolver res ;

    synchronized( this ) {
        checkShutdownState();
        res = resolver ;
    }

    synchronized (resolverLock) {
        org.omg.CORBA.Object result = res.resolve( identifier ) ;

        if (result == null)
            throw new InvalidName() ;
        else
            return result ;
    }
}
 
Example 18
Project: openjdk-icedtea7   File: ORBConfiguratorImpl.java   View source code 6 votes vote down vote up
private void initializeNaming( ORB orb )
{
    LocalResolver localResolver = ResolverDefault.makeLocalResolver() ;
    orb.setLocalResolver( localResolver ) ;

    Resolver bootResolver = ResolverDefault.makeBootstrapResolver( orb,
        orb.getORBData().getORBInitialHost(),
        orb.getORBData().getORBInitialPort() ) ;

    Operation urlOperation = ResolverDefault.makeINSURLOperation( orb,
        bootResolver ) ;
    orb.setURLOperation( urlOperation ) ;

    Resolver irResolver = ResolverDefault.makeORBInitRefResolver( urlOperation,
        orb.getORBData().getORBInitialReferences() ) ;

    Resolver dirResolver = ResolverDefault.makeORBDefaultInitRefResolver(
        urlOperation, orb.getORBData().getORBDefaultInitialReference() ) ;

    Resolver resolver =
        ResolverDefault.makeCompositeResolver( localResolver,
            ResolverDefault.makeCompositeResolver( irResolver,
                ResolverDefault.makeCompositeResolver( dirResolver,
                    bootResolver ) ) ) ;
    orb.setResolver( resolver ) ;
}
 
Example 19
Project: openjdk-icedtea7   File: ORBImpl.java   View source code 6 votes vote down vote up
/**
 * Resolve the stringified reference of one of the initially
 * available CORBA services.
 * @param identifier The stringified object reference of the
 * desired service.
 * @return An object reference for the desired service.
 * @exception InvalidName The supplied identifier is not associated
 * with a known service.
 * @exception SystemException One of a fixed set of Corba system exceptions.
 */
public org.omg.CORBA.Object resolve_initial_references(
    String identifier) throws InvalidName
{
    Resolver res ;

    synchronized( this ) {
        checkShutdownState();
        res = resolver ;
    }

    synchronized (resolverLock) {
        org.omg.CORBA.Object result = res.resolve( identifier ) ;

        if (result == null)
            throw new InvalidName() ;
        else
            return result ;
    }
}
 
Example 20
Project: OpenJSharp   File: INSURLOperationImpl.java   View source code 5 votes vote down vote up
public INSURLOperationImpl( ORB orb, Resolver bootstrapResolver )
{
    this.orb = orb ;
    wrapper = ORBUtilSystemException.get( orb,
        CORBALogDomains.ORB_RESOLVER ) ;
    omgWrapper = OMGSystemException.get( orb,
        CORBALogDomains.ORB_RESOLVER ) ;
    this.bootstrapResolver = bootstrapResolver ;
}
 
Example 21
Project: OpenJSharp   File: ORBImpl.java   View source code 5 votes vote down vote up
/**
 * Get a list of the initially available CORBA services.
 * This does not work unless an ORBInitialHost is specified during
 * initialization (or unless there is an ORB running on the AppletHost)
 * since the localhostname
 * is inaccessible to applets. If a service properties URL was specified,
 * then it is used, otherwise the bootstrapping protocol is used.
 * @return A list of the initial services available.
 */
public String[] list_initial_services()
{
    Resolver res ;

    synchronized( this ) {
        checkShutdownState();
        res = resolver ;
    }

    synchronized (resolverLock) {
        java.util.Set keys = res.list() ;
        return (String[])keys.toArray( new String[keys.size()] ) ;
    }
}
 
Example 22
Project: OpenJSharp   File: ORBImpl.java   View source code 5 votes vote down vote up
/** Set the resolver used in this ORB.  This resolver will be used for list_initial_services
 * and resolve_initial_references.
 */
public void setResolver( Resolver resolver )
{
    synchronized (this) {
            checkShutdownState();
    }
    synchronized (resolverLock) {
        this.resolver = resolver ;
    }
}
 
Example 23
Project: OpenJSharp   File: ORBImpl.java   View source code 5 votes vote down vote up
/** Get the resolver used in this ORB.  This resolver will be used for list_initial_services
 * and resolve_initial_references.
 */
public Resolver getResolver()
{
    synchronized (this) {
            checkShutdownState();
    }
    synchronized (resolverLock) {
        return resolver ;
    }
}
 
Example 24
Project: openjdk-jdk10   File: INSURLOperationImpl.java   View source code 5 votes vote down vote up
public INSURLOperationImpl( ORB orb, Resolver bootstrapResolver )
{
    this.orb = orb ;
    wrapper = ORBUtilSystemException.get( orb,
        CORBALogDomains.ORB_RESOLVER ) ;
    omgWrapper = OMGSystemException.get( orb,
        CORBALogDomains.ORB_RESOLVER ) ;
    this.bootstrapResolver = bootstrapResolver ;
}
 
Example 25
Project: openjdk-jdk10   File: ORBImpl.java   View source code 5 votes vote down vote up
/**
 * Get a list of the initially available CORBA services.
 * This does not work unless an ORBInitialHost is specified during
 * initialization (or unless there is an ORB running on the AppletHost)
 * since the localhostname
 * is inaccessible to applets. If a service properties URL was specified,
 * then it is used, otherwise the bootstrapping protocol is used.
 * @return A list of the initial services available.
 */
public String[] list_initial_services()
{
    Resolver res ;

    synchronized( this ) {
        checkShutdownState();
        res = resolver ;
    }

    synchronized (resolverLock) {
        java.util.Set keys = res.list() ;
        return (String[])keys.toArray( new String[keys.size()] ) ;
    }
}
 
Example 26
Project: openjdk-jdk10   File: ORBImpl.java   View source code 5 votes vote down vote up
/** Set the resolver used in this ORB.  This resolver will be used for list_initial_services
 * and resolve_initial_references.
 */
public void setResolver( Resolver resolver )
{
    synchronized (this) {
            checkShutdownState();
    }
    synchronized (resolverLock) {
        this.resolver = resolver ;
    }
}
 
Example 27
Project: openjdk-jdk10   File: ORBImpl.java   View source code 5 votes vote down vote up
/** Get the resolver used in this ORB.  This resolver will be used for list_initial_services
 * and resolve_initial_references.
 */
public Resolver getResolver()
{
    synchronized (this) {
            checkShutdownState();
    }
    synchronized (resolverLock) {
        return resolver ;
    }
}
 
Example 28
Project: openjdk9   File: INSURLOperationImpl.java   View source code 5 votes vote down vote up
public INSURLOperationImpl( ORB orb, Resolver bootstrapResolver )
{
    this.orb = orb ;
    wrapper = ORBUtilSystemException.get( orb,
        CORBALogDomains.ORB_RESOLVER ) ;
    omgWrapper = OMGSystemException.get( orb,
        CORBALogDomains.ORB_RESOLVER ) ;
    this.bootstrapResolver = bootstrapResolver ;
}
 
Example 29
Project: openjdk9   File: ORBImpl.java   View source code 5 votes vote down vote up
/**
 * Get a list of the initially available CORBA services.
 * This does not work unless an ORBInitialHost is specified during
 * initialization (or unless there is an ORB running on the AppletHost)
 * since the localhostname
 * is inaccessible to applets. If a service properties URL was specified,
 * then it is used, otherwise the bootstrapping protocol is used.
 * @return A list of the initial services available.
 */
public String[] list_initial_services()
{
    Resolver res ;

    synchronized( this ) {
        checkShutdownState();
        res = resolver ;
    }

    synchronized (resolverLock) {
        java.util.Set keys = res.list() ;
        return (String[])keys.toArray( new String[keys.size()] ) ;
    }
}
 
Example 30
Project: openjdk9   File: ORBImpl.java   View source code 5 votes vote down vote up
/** Set the resolver used in this ORB.  This resolver will be used for list_initial_services
 * and resolve_initial_references.
 */
public void setResolver( Resolver resolver )
{
    synchronized (this) {
            checkShutdownState();
    }
    synchronized (resolverLock) {
        this.resolver = resolver ;
    }
}
 
Example 31
Project: openjdk9   File: ORBImpl.java   View source code 5 votes vote down vote up
/** Get the resolver used in this ORB.  This resolver will be used for list_initial_services
 * and resolve_initial_references.
 */
public Resolver getResolver()
{
    synchronized (this) {
            checkShutdownState();
    }
    synchronized (resolverLock) {
        return resolver ;
    }
}
 
Example 32
Project: lookaside_java-1.8.0-openjdk   File: INSURLOperationImpl.java   View source code 5 votes vote down vote up
public INSURLOperationImpl( ORB orb, Resolver bootstrapResolver )
{
    this.orb = orb ;
    wrapper = ORBUtilSystemException.get( orb,
        CORBALogDomains.ORB_RESOLVER ) ;
    omgWrapper = OMGSystemException.get( orb,
        CORBALogDomains.ORB_RESOLVER ) ;
    this.bootstrapResolver = bootstrapResolver ;
}
 
Example 33
Project: lookaside_java-1.8.0-openjdk   File: ORBImpl.java   View source code 5 votes vote down vote up
/**
 * Get a list of the initially available CORBA services.
 * This does not work unless an ORBInitialHost is specified during
 * initialization (or unless there is an ORB running on the AppletHost)
 * since the localhostname
 * is inaccessible to applets. If a service properties URL was specified,
 * then it is used, otherwise the bootstrapping protocol is used.
 * @return A list of the initial services available.
 */
public String[] list_initial_services()
{
    Resolver res ;

    synchronized( this ) {
        checkShutdownState();
        res = resolver ;
    }

    synchronized (resolverLock) {
        java.util.Set keys = res.list() ;
        return (String[])keys.toArray( new String[keys.size()] ) ;
    }
}
 
Example 34
Project: lookaside_java-1.8.0-openjdk   File: ORBImpl.java   View source code 5 votes vote down vote up
/** Set the resolver used in this ORB.  This resolver will be used for list_initial_services
 * and resolve_initial_references.
 */
public void setResolver( Resolver resolver )
{
    synchronized (this) {
            checkShutdownState();
    }
    synchronized (resolverLock) {
        this.resolver = resolver ;
    }
}
 
Example 35
Project: lookaside_java-1.8.0-openjdk   File: ORBImpl.java   View source code 5 votes vote down vote up
/** Get the resolver used in this ORB.  This resolver will be used for list_initial_services
 * and resolve_initial_references.
 */
public Resolver getResolver()
{
    synchronized (this) {
            checkShutdownState();
    }
    synchronized (resolverLock) {
        return resolver ;
    }
}
 
Example 36
Project: jdk8u_corba   File: INSURLOperationImpl.java   View source code 5 votes vote down vote up
public INSURLOperationImpl( ORB orb, Resolver bootstrapResolver )
{
    this.orb = orb ;
    wrapper = ORBUtilSystemException.get( orb,
        CORBALogDomains.ORB_RESOLVER ) ;
    omgWrapper = OMGSystemException.get( orb,
        CORBALogDomains.ORB_RESOLVER ) ;
    this.bootstrapResolver = bootstrapResolver ;
}
 
Example 37
Project: jdk8u_corba   File: ORBImpl.java   View source code 5 votes vote down vote up
/**
 * Get a list of the initially available CORBA services.
 * This does not work unless an ORBInitialHost is specified during
 * initialization (or unless there is an ORB running on the AppletHost)
 * since the localhostname
 * is inaccessible to applets. If a service properties URL was specified,
 * then it is used, otherwise the bootstrapping protocol is used.
 * @return A list of the initial services available.
 */
public String[] list_initial_services()
{
    Resolver res ;

    synchronized( this ) {
        checkShutdownState();
        res = resolver ;
    }

    synchronized (resolverLock) {
        java.util.Set keys = res.list() ;
        return (String[])keys.toArray( new String[keys.size()] ) ;
    }
}
 
Example 38
Project: jdk8u_corba   File: ORBImpl.java   View source code 5 votes vote down vote up
/** Set the resolver used in this ORB.  This resolver will be used for list_initial_services
 * and resolve_initial_references.
 */
public void setResolver( Resolver resolver )
{
    synchronized (this) {
            checkShutdownState();
    }
    synchronized (resolverLock) {
        this.resolver = resolver ;
    }
}
 
Example 39
Project: jdk8u_corba   File: ORBImpl.java   View source code 5 votes vote down vote up
/** Get the resolver used in this ORB.  This resolver will be used for list_initial_services
 * and resolve_initial_references.
 */
public Resolver getResolver()
{
    synchronized (this) {
            checkShutdownState();
    }
    synchronized (resolverLock) {
        return resolver ;
    }
}
 
Example 40
Project: infobip-open-jdk-8   File: INSURLOperationImpl.java   View source code 5 votes vote down vote up
public INSURLOperationImpl( ORB orb, Resolver bootstrapResolver )
{
    this.orb = orb ;
    wrapper = ORBUtilSystemException.get( orb,
        CORBALogDomains.ORB_RESOLVER ) ;
    omgWrapper = OMGSystemException.get( orb,
        CORBALogDomains.ORB_RESOLVER ) ;
    this.bootstrapResolver = bootstrapResolver ;
}