gpt4 book ai didi

com.obsidiandynamics.yconf.Y类的使用及代码示例

转载 作者:知者 更新时间:2024-03-15 16:16:40 27 4
gpt4 key购买 nike

本文整理了Java中com.obsidiandynamics.yconf.Y类的一些代码示例,展示了Y类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Y类的具体详情如下:
包路径:com.obsidiandynamics.yconf.Y
类名称:Y

Y介绍

暂无

代码示例

代码示例来源:origin: com.obsidiandynamics.socketx/socketx-core

@Y
public class XClientConfig extends XEndpointConfig<XClientConfig> {
 {
  sslContextProvider = CompositeSSLContextProvider.getDevServerDefault();
 }
 
 @Override
 public String toString() {
  return "XClientConfig [idleTimeoutMillis: " + idleTimeoutMillis + ", scanIntervalMillis: " + scanIntervalMillis
      + ", highWaterMark: " + highWaterMark + ", sslContextProvider: " + sslContextProvider
      + ", attributes: " + attributes + "]";
 }
}

代码示例来源:origin: com.obsidiandynamics.yconf/yconf-core

private TypeMapper getMapper(Class<?> type, Class<? extends TypeMapper> mapperType) {
 final TypeMapper existing = mappers.get(type);
 if (existing != null) {
  return cast(existing);
 } else {
  final TypeMapper newMapper;
  if (mapperType != null) {
   newMapper = instantiateMapper(type, mapperType);
  } else {
   final Y y = type.getAnnotation(Y.class);
   if (y != null) {
    newMapper = instantiateMapper(type, y.value());
   } else {
    newMapper = mappers.get(Object.class);
   }
  }
  mappers.put(type, newMapper);
  return newMapper;
 }
}

代码示例来源:origin: com.obsidiandynamics.socketx/socketx-core

@Y
public final class NullTrustManagerProvider implements TrustManagerProvider {
 @Override
 public TrustManager[] getTrustManagers() {
  return null;
 }

 @Override
 public String toString() {
  return NullTrustManagerProvider.class.getSimpleName();
 }
}

代码示例来源:origin: com.obsidiandynamics.socketx/socketx-core

@Y
public final class NullKeyManagerProvider implements KeyManagerProvider {
 @Override
 public KeyManager[] getKeyManagers() {
  return null;
 }

 @Override
 public String toString() {
  return NullKeyManagerProvider.class.getSimpleName();
 }
}

代码示例来源:origin: com.obsidiandynamics.socketx/socketx-core

@Y
public final class DefaultSSLContextProvider implements SSLContextProvider {
 @Override
 public SSLContext getSSLContext() throws NoSuchAlgorithmException {
  return SSLContext.getDefault();
 }

 @Override
 public String toString() {
  return DefaultSSLContextProvider.class.getSimpleName();
 }
}

代码示例来源:origin: com.obsidiandynamics.jackdaw/jackdaw-core

@Y
public final class ProducerPipeConfig {
 @YInject
 private boolean async = true;
 
 public boolean isAsync() {
  return async;
 }
 
 public void setAsync(boolean async) {
  this.async = async;
 }

 public ProducerPipeConfig withAsync(boolean async) {
  setAsync(async);
  return this;
 }
 
 @Override
 public String toString() {
  return ProducerPipeConfig.class.getSimpleName() + " [async=" + async + "]";
 }
}

代码示例来源:origin: com.obsidiandynamics.yconf/yconf-core

/**
 *  Represents a value that cannot be null.
 */
@Y(Mandatory.Mapper.class)
public final class Mandatory {
 public static final class Mapper implements TypeMapper {
  @Override public Object map(YObject y, Class<?> type) {
   return of(y.mapAttribute("value", Object.class), y.mapAttribute("error", String.class));
  }
 }
 
 public static final class MissingValueException extends RuntimeException {
  private static final long serialVersionUID = 1L;
  
  MissingValueException(String m) { super(m); }
 }
 
 private Mandatory() {}
 
 public static Object of(Object value, String errorMessage) {
  if (value == null) throw new MissingValueException(errorMessage);
  return value;
 }
}

代码示例来源:origin: com.obsidiandynamics.socketx/socketx-core

@Y
public final class LenientX509TrustManagerProvider implements TrustManagerProvider {
 @Override
 public TrustManager[] getTrustManagers() throws Exception {
  return new TrustManager[] {
   new X509TrustManager() {
    @Override
    public X509Certificate[] getAcceptedIssuers() { return new X509Certificate[0]; }
    
    @Override
    public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException {}
    
    @Override
    public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException {}
   }
  };
 }
 
 @Override
 public String toString() {
  return LenientX509TrustManagerProvider.class.getSimpleName();
 }
}

代码示例来源:origin: com.obsidiandynamics.meteor/meteor-common

@Y(GridProvider.Mapper.class)
public final class GridProvider implements HazelcastProvider {
 public static final class Mapper implements TypeMapper {
  @Override public Object map(YObject y, Class<?> type) {
   return instance;
  }
 }
 
 private static final GridProvider instance = new GridProvider();
 
 public static GridProvider getInstance() {
  return instance;
 }
 
 private GridProvider() {}
 
 @Override
 public HazelcastInstance createInstance(Config config) {
  return Hazelcast.newHazelcastInstance(config);
 }

 @Override
 public void shutdownAll() {
  Hazelcast.shutdownAll();
 }
}

代码示例来源:origin: com.obsidiandynamics.hazelq/hazelq-common

@Y(GridProvider.Mapper.class)
public final class GridProvider implements HazelcastProvider {
 public static final class Mapper implements TypeMapper {
  @Override public Object map(YObject y, Class<?> type) {
   return instance;
  }
 }
 
 private static final GridProvider instance = new GridProvider();
 
 public static GridProvider getInstance() {
  return instance;
 }
 
 private GridProvider() {}
 
 @Override
 public HazelcastInstance createInstance(Config config) {
  return Hazelcast.newHazelcastInstance(config);
 }

 @Override
 public void shutdownAll() {
  Hazelcast.shutdownAll();
 }
}

代码示例来源:origin: com.obsidiandynamics.socketx/socketx-core

@Y
public class JKSTrustManagerProvider implements TrustManagerProvider {
 @YInject

代码示例来源:origin: com.obsidiandynamics.meteor/meteor-core

@Y
public final class PublisherConfig {
 @YInject

代码示例来源:origin: com.obsidiandynamics.socketx/socketx-core

@Y
public final class XMappedServlet {
 private final String path;

代码示例来源:origin: com.obsidiandynamics.yconf/yconf-core

@Y
public final class Secret {
 private final String value;

代码示例来源:origin: com.obsidiandynamics.socketx/socketx-core

@Y
public class JKSKeyManagerProvider implements KeyManagerProvider {
 @YInject

代码示例来源:origin: com.obsidiandynamics.jackdaw/jackdaw-core

@Y
public final class ConsumerPipeConfig {
 @YInject

代码示例来源:origin: com.obsidiandynamics.hazelq/hazelq-elect

@Y
public final class ElectionConfig {
 @YInject

代码示例来源:origin: com.obsidiandynamics.meteor/meteor-elect

@Y
public final class ElectionConfig {
 @YInject

代码示例来源:origin: com.obsidiandynamics.socketx/socketx-core

@Y
public abstract class XEndpointConfig<C extends XEndpointConfig<C>> {
 @YInject

代码示例来源:origin: com.obsidiandynamics.socketx/socketx-core

@Y
public class CompositeSSLContextProvider implements SSLContextProvider {
 @YInject

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com