Class IntrospectionAutoConfiguration


  • @Configuration
    @AutoConfigureAfter(AgentRpcServersAutoConfiguration.class)
    public class IntrospectionAutoConfiguration
    extends java.lang.Object
    Auto configuration for shared DTO instances within the web server.
    Since:
    4.0.0
    • Constructor Detail

      • IntrospectionAutoConfiguration

        public IntrospectionAutoConfiguration()
    • Method Detail

      • genieHostInfo

        @Bean
        @ConditionalOnMissingBean(GenieWebHostInfo.class)
        public GenieWebHostInfo genieHostInfo()
                                       throws java.net.UnknownHostException
        Get the GenieWebHostInfo for this application. This is the default fallback implementation if no other bean instance of this type has been created.
        Returns:
        A GenieWebHostInfo instance
        Throws:
        java.net.UnknownHostException - When the host can't be calculated
        java.lang.IllegalStateException - When an instance can't be created
        See Also:
        InetAddress.getCanonicalHostName()
      • genieWebRpcInfo

        @Bean
        @ConditionalOnMissingBean(GenieWebRpcInfo.class)
        public GenieWebRpcInfo genieWebRpcInfo​(io.grpc.Server server)
                                        throws java.lang.IllegalStateException
        Provide a GenieWebRpcInfo bean if one hasn't already been defined.
        Parameters:
        server - The gRPC Server instance. Must not be Server.isShutdown() or Server.isTerminated(). Must be able to get the port the server is listening on.
        Returns:
        A GenieWebRpcInfo instance
        Throws:
        java.lang.IllegalStateException - When an instance can't be created