本文整理了Java中io.micronaut.core.annotation.Internal
类的一些代码示例,展示了Internal
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Internal
类的具体详情如下:
包路径:io.micronaut.core.annotation.Internal
类名称:Internal
暂无
代码示例来源: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
/**
* Delegate for Streamed HTTP Response.
*
* @author Graeme Rocher
* @since 1.0
*/
@Internal
final class DelegateStreamedHttpResponse extends DelegateHttpResponse implements StreamedHttpResponse {
private final Publisher<HttpContent> stream;
/**
* @param response The {@link HttpResponse}
* @param stream The {@link Publisher} for {@link HttpContent}
*/
DelegateStreamedHttpResponse(HttpResponse response, Publisher<HttpContent> stream) {
super(response);
this.stream = stream;
}
@Override
public void subscribe(Subscriber<? super HttpContent> subscriber) {
stream.subscribe(subscriber);
}
}
代码示例来源:origin: micronaut-projects/micronaut-core
/**
* Delegate for Streamed HTTP Response.
*
* @author jroper
* @author Graeme Rocher
* @since 1.0
*/
@Internal
final class DelegateStreamedHttpResponse extends DelegateHttpResponse implements StreamedHttpResponse {
private final Publisher<HttpContent> stream;
/**
* @param response The {@link HttpResponse}
* @param stream The {@link Publisher} for {@link HttpContent}
*/
DelegateStreamedHttpResponse(HttpResponse response, Publisher<HttpContent> stream) {
super(response);
this.stream = stream;
}
@Override
public void subscribe(Subscriber<? super HttpContent> subscriber) {
stream.subscribe(subscriber);
}
}
代码示例来源:origin: micronaut-projects/micronaut-core
/**
* Delegate for Streamed HTTP Request.
*
* @author jroper
* @author Graeme Rocher
* @since 1.0
*/
@Internal
final class DelegateStreamedHttpRequest extends DelegateHttpRequest implements StreamedHttpRequest {
private final Publisher<HttpContent> stream;
/**
* @param request The Http request
* @param stream The publisher
*/
DelegateStreamedHttpRequest(HttpRequest request, Publisher<HttpContent> stream) {
super(request);
this.stream = stream;
}
@Override
public void subscribe(Subscriber<? super HttpContent> subscriber) {
stream.subscribe(subscriber);
}
}
代码示例来源:origin: micronaut-projects/micronaut-core
/**
* Disables the client beans if the appropriate configuration is not present.
*
* @author graemerocher
* @since 1.0
*/
@Internal
final class ServiceHttpClientCondition implements Condition {
@Override
public boolean matches(ConditionContext context) {
AnnotationMetadataProvider component = context.getComponent();
BeanContext beanContext = context.getBeanContext();
if (beanContext instanceof ApplicationContext) {
Environment env = ((ApplicationContext) beanContext).getEnvironment();
if (component instanceof ValueResolver) {
Optional<String> optional = ((ValueResolver) component).get(Named.class.getName(), String.class);
if (optional.isPresent()) {
String serviceName = optional.get();
String urlProp = ServiceHttpClientConfiguration.PREFIX + "." + serviceName + ".url";
return env.containsProperty(urlProp) || env.containsProperty(urlProp + "s");
}
}
}
return true;
}
}
代码示例来源:origin: micronaut-projects/micronaut-core
/**
* Information about a class being parsed in a {@link org.objectweb.asm.ClassReader}.
*
* @author Eric Bruneton
*/
@Internal
class Context {
/**
* Prototypes of the attributes that must be parsed for this class.
*/
Attribute[] attrs;
/**
* The {@link org.objectweb.asm.ClassReader} option flags for the parsing of this class.
*/
int flags;
/**
* The buffer used to read strings.
*/
char[] buffer;
/**
* The start index of each bootstrap method.
*/
int[] bootstrapMethods;
}
代码示例来源:origin: micronaut-projects/micronaut-core
@Internal
public class ClientServerContextFilter implements HttpClientFilter {
代码示例来源: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
/**
* A {@link TypeConverter} that converts {@link CharSequence} instances to Netty {@link ChannelOption} instances.
*
* @author Graeme Rocher
* @since 1.0
*/
@Singleton
@Internal
public class NettyChannelOptionConverter implements TypeConverter<CharSequence, ChannelOption> {
@Override
public Optional<ChannelOption> convert(CharSequence object, Class<ChannelOption> targetType, ConversionContext context) {
String str = object.toString();
String name = NameUtils.underscoreSeparate(str).toUpperCase(Locale.ENGLISH);
ChannelOption<Object> channelOption = ChannelOption.valueOf(name);
if (channelOption != null) {
return Optional.of(channelOption);
}
return Optional.empty();
}
}
代码示例来源: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);
}
内容来源于网络,如有侵权,请联系作者删除!