Example usage for javax.naming.spi InitialContextFactoryBuilder getClass

List of usage examples for javax.naming.spi InitialContextFactoryBuilder getClass

Introduction

In this page you can find the example usage for javax.naming.spi InitialContextFactoryBuilder getClass.

Prototype

@HotSpotIntrinsicCandidate
public final native Class<?> getClass();

Source Link

Document

Returns the runtime class of this Object .

Usage

From source file:example.app.config.support.NamingContextBuilderFactoryBean.java

@Override
public Class<?> getObjectType() {
    InitialContextFactoryBuilder namingContextBuilder = SimpleNamingContextBuilder.getCurrentContextBuilder();

    return (namingContextBuilder != null ? namingContextBuilder.getClass()
            : InitialContextFactoryBuilder.class);
}