本文整理了Java中io.micronaut.core.annotation.Internal.<init>()
方法的一些代码示例,展示了Internal.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Internal.<init>()
方法的具体详情如下:
包路径:io.micronaut.core.annotation.Internal
类名称:Internal
方法名:<init>
暂无
代码示例来源:origin: micronaut-projects/micronaut-core
/**
* Used by Jackson.
*/
@Internal
JsonError() {
}
代码示例来源:origin: micronaut-projects/micronaut-core
/**
* Used by Jackson.
*/
@Internal
VndError() {
}
}
代码示例来源:origin: micronaut-projects/micronaut-core
/**
* Used by Jackson.
*/
@Internal
VndError() {
this(null);
}
}
代码示例来源:origin: micronaut-projects/micronaut-core
/**
* Creates a SmartHttpContentCompressor with the default compression threshold.
*
* @see #SmartHttpContentCompressor(int)
*/
@Internal
public SmartHttpContentCompressor() {
this(NettyHttpServerConfiguration.DEFAULT_COMPRESSIONTHRESHOLD);
}
代码示例来源:origin: micronaut-projects/micronaut-core
/**
* @param bodyRequired Sets the body as required
*/
@Internal
void setBodyRequired(boolean bodyRequired) {
this.bodyRequired = bodyRequired;
}
代码示例来源:origin: micronaut-projects/micronaut-core
/**
* An empty representation of {@link AnnotationMetadata}.
*
* @author Graeme Rocher
* @since 1.0
*/
@Internal
class EmptyAnnotationMetadata implements AnnotationMetadata {
}
代码示例来源:origin: micronaut-projects/micronaut-core
/**
* @return Obtains the matched route
*/
@Internal
public RouteMatch<?> getMatchedRoute() {
return matchedRoute;
}
代码示例来源:origin: micronaut-projects/micronaut-core
/**
* @param matchedRoute The matched route
*/
@Internal
void setMatchedRoute(RouteMatch<?> matchedRoute) {
this.matchedRoute = matchedRoute;
}
代码示例来源:origin: micronaut-projects/micronaut-core
/**
* Internal attributes for the adapter annotation.
*/
@Internal
class InternalAttributes {
public static final String ADAPTED_BEAN = "adaptedBean";
public static final String ADAPTED_METHOD = "adaptedMethod";
public static final String ADAPTED_ARGUMENT_TYPES = "adaptedArgumentTypes";
public static final String ADAPTED_QUALIFIER = "adaptedQualifier";
}
}
代码示例来源:origin: micronaut-projects/micronaut-core
/**
* Used by Jackson.
*/
@Internal
JsonError() {
this(null);
}
代码示例来源:origin: micronaut-projects/micronaut-core
/**
* Internal copy constructor.
* @param target The target
* @param defaultValues The default values
* @param convertibleValues The convertible values
*/
@Internal
@UsedByGeneratedCode
protected AnnotationValue(AnnotationValue<A> target, Map<String, Object> defaultValues, ConvertibleValues<Object> convertibleValues) {
this.annotationName = target.annotationName;
this.defaultValues = defaultValues != null ? defaultValues : target.defaultValues;
this.values = target.values;
this.convertibleValues = convertibleValues;
}
代码示例来源:origin: micronaut-projects/micronaut-core
/**
* Sets the body.
*
* @param body The body to set
*/
@Internal
public void setBody(T body) {
this.body = () -> Optional.ofNullable(body);
this.convertedBodies.clear();
}
代码示例来源:origin: micronaut-projects/micronaut-core
/**
* Default constructor.
*
* @param name The name of the property source in the config server
* @param source The map containing the configuration entries
*/
@JsonCreator
@Internal
protected ConfigServerPropertySource(@JsonProperty("name") String name,
@JsonProperty("source") Map<String, Object> source) {
this.name = name;
this.source = source == null ? Collections.emptyMap() : Collections.unmodifiableMap(source);
}
代码示例来源:origin: micronaut-projects/micronaut-core
/**
* A special type for files specific to Netty.
*
* @author James Kleeh
* @since 1.0
*/
@Internal
@Experimental
public interface NettyFileCustomizableResponseType extends FileCustomizableResponseType, NettyCustomizableResponseType {
}
代码示例来源:origin: micronaut-projects/micronaut-core
/**
* Lookup the response from the request.
*
* @param request The request
* @return The {@link NettyMutableHttpResponse}
*/
@Internal
public static Optional<NettyMutableHttpResponse> get(NettyHttpRequest<?> request) {
NettyMutableHttpResponse nettyHttpResponse = request.attr(KEY).get();
return Optional.ofNullable(nettyHttpResponse);
}
代码示例来源:origin: micronaut-projects/micronaut-core
@Override
@Internal
public void close() throws IOException {
if (closeContext && applicationContext != null) {
applicationContext.close();
}
}
代码示例来源:origin: micronaut-projects/micronaut-core
/**
* @param httpContent The HttpContent as {@link ByteBufHolder}
*/
@Internal
void addContent(ByteBufHolder httpContent) {
if (httpContent instanceof AbstractHttpData) {
receivedData.computeIfAbsent(System.identityHashCode(httpContent), (key) -> {
httpContent.retain();
return (AbstractHttpData) httpContent;
});
} else {
receivedContent.add(httpContent);
}
}
代码示例来源:origin: micronaut-projects/micronaut-core
/**
* @return Whether the body is required
*/
@Internal
boolean isBodyRequired() {
return bodyRequired || HttpMethod.requiresRequestBody(getMethod());
}
代码示例来源:origin: micronaut-projects/micronaut-core
/**
* Lookup the response from the context.
*
* @param request The context
* @return The {@link NettyMutableHttpResponse}
*/
@Internal
public static NettyMutableHttpResponse getOrCreate(NettyHttpRequest<?> request) {
return getOr(request, io.micronaut.http.HttpResponse.ok());
}
代码示例来源:origin: micronaut-projects/micronaut-core
/**
* Resolves the {@link Around} interceptors for a method.
*
* @param beanContext bean context passed in
* @param method The method
* @param interceptors The array of interceptors
* @return The filtered array of interceptors
*/
@Internal
public static Interceptor[] resolveAroundInterceptors(BeanContext beanContext, ExecutableMethod<?, ?> method, Interceptor... interceptors) {
instrumentAnnotationMetadata(beanContext, method);
return resolveInterceptorsInternal(method, Around.class, interceptors);
}
内容来源于网络,如有侵权,请联系作者删除!