io.micronaut.core.annotation.Internal Java Examples

The following examples show how to use io.micronaut.core.annotation.Internal. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: GrpcEmbeddedServer.java    From micronaut-grpc with Apache License 2.0 6 votes vote down vote up
/**
 * Default constructor.
 * @param applicationContext The application context
 * @param applicationConfiguration The application configuration
 * @param grpcServerConfiguration The GRPC server configuration
 * @param serverBuilder The server builder
 * @param eventPublisher The event publisher
 * @param computeInstanceMetadataResolver The computed instance metadata
 * @param metadataContributors The metadata contributors
 */
@Internal
GrpcEmbeddedServer(
        @Nonnull ApplicationContext applicationContext,
        @Nonnull ApplicationConfiguration applicationConfiguration,
        @Nonnull GrpcServerConfiguration grpcServerConfiguration,
        @Nonnull ServerBuilder<?> serverBuilder,
        @Nonnull ApplicationEventPublisher eventPublisher,
        @Nullable ComputeInstanceMetadataResolver computeInstanceMetadataResolver,
        @Nullable List<ServiceInstanceMetadataContributor> metadataContributors) {
    ArgumentUtils.requireNonNull("applicationContext", applicationContext);
    ArgumentUtils.requireNonNull("applicationConfiguration", applicationConfiguration);
    ArgumentUtils.requireNonNull("grpcServerConfiguration", grpcServerConfiguration);
    this.applicationContext = applicationContext;
    this.configuration = applicationConfiguration;
    this.grpcConfiguration = grpcServerConfiguration;
    this.eventPublisher = eventPublisher;
    this.server = serverBuilder.build();
    this.computeInstanceMetadataResolver = computeInstanceMetadataResolver;
    this.metadataContributors = metadataContributors;
}
 
Example #2
Source File: GrpcEmbeddedServer.java    From micronaut-grpc with Apache License 2.0 6 votes vote down vote up
/**
 * Default constructor.
 * @param applicationContext The application context
 * @param applicationConfiguration The application configuration
 * @param grpcServerConfiguration The GRPC server configuration
 * @param serverBuilder The server builder
 * @param eventPublisher The event publisher
 * @param computeInstanceMetadataResolver The computed instance metadata
 * @param metadataContributors The metadata contributors
 */
@Internal
GrpcEmbeddedServer(
        @Nonnull ApplicationContext applicationContext,
        @Nonnull ApplicationConfiguration applicationConfiguration,
        @Nonnull GrpcServerConfiguration grpcServerConfiguration,
        @Nonnull ServerBuilder<?> serverBuilder,
        @Nonnull ApplicationEventPublisher eventPublisher,
        @Nullable ComputeInstanceMetadataResolver computeInstanceMetadataResolver,
        @Nullable List<ServiceInstanceMetadataContributor> metadataContributors) {
    ArgumentUtils.requireNonNull("applicationContext", applicationContext);
    ArgumentUtils.requireNonNull("applicationConfiguration", applicationConfiguration);
    ArgumentUtils.requireNonNull("grpcServerConfiguration", grpcServerConfiguration);
    this.applicationContext = applicationContext;
    this.configuration = applicationConfiguration;
    this.grpcConfiguration = grpcServerConfiguration;
    this.eventPublisher = eventPublisher;
    this.server = serverBuilder.build();
    this.computeInstanceMetadataResolver = computeInstanceMetadataResolver;
    this.metadataContributors = metadataContributors;
}
 
Example #3
Source File: MicronautAwsProxyRequest.java    From micronaut-aws with Apache License 2.0 5 votes vote down vote up
/**
 * @return The response object
 */
@Internal
public MicronautAwsProxyResponse<?> getResponse() {
    if (response == null) {
        throw new IllegalStateException("Response not set");
    }
    return response;
}
 
Example #4
Source File: TransactionalConnectionInterceptor.java    From micronaut-data with Apache License 2.0 5 votes vote down vote up
/**
 * Default constructor.
 *
 * @param beanContext The bean context
 * @param qualifier   The qualifier
 */
@Internal
TransactionalConnectionInterceptor(BeanContext beanContext, Qualifier<DataSource> qualifier) {
    DataSource dataSource = beanContext.getBean(DataSource.class, qualifier);
    if (dataSource instanceof DelegatingDataSource) {
        dataSource = ((DelegatingDataSource) dataSource).getTargetDataSource();
    }
    this.dataSource = dataSource;
}
 
Example #5
Source File: MicronautAwsProxyRequest.java    From micronaut-aws with Apache License 2.0 2 votes vote down vote up
/**
 * Sets the associated response object.
 *
 * @param response The response
 */
@Internal
void setResponse(MicronautAwsProxyResponse<?> response) {
    this.response = response;
}
 
Example #6
Source File: MicronautAwsProxyRequest.java    From micronaut-aws with Apache License 2.0 2 votes vote down vote up
/**
 * The decoded body.
 *
 * @param decodedBody The body
 */
@Internal
void setDecodedBody(T decodedBody) {
    this.decodedBody = decodedBody;
}
 
Example #7
Source File: TransactionalSessionInterceptor.java    From micronaut-sql with Apache License 2.0 2 votes vote down vote up
/**
 * Default constructor.
 *
 * @param beanContext The bean context
 * @param qualifier   The qualifier
 */
@Internal
TransactionalSessionInterceptor(BeanContext beanContext, Qualifier<SessionFactory> qualifier) {
    this.sessionFactory = beanContext.getBean(SessionFactory.class, qualifier);
}