public static JsonSchemaLookup getSingleton() { if (singleton == null) { // lazy create one new JsonSchemaLookup().init(); } return singleton; }
private String getEndIndentionWithReturnForList(int n) { return getEol() + getIndention(n) + "]"; }
protected static Field findField(String fieldName, Class<?> declaringClass) { try { return declaringClass.getDeclaredField(fieldName); } catch (NoSuchFieldException e) { Class<?> superclass = declaringClass.getSuperclass(); if (superclass != null && superclass != declaringClass) { return findField(fieldName, superclass); } else { return null; } } }
@Override public IgnorePropertiesBackedByTransientFields withVisibility(PropertyAccessor method, JsonAutoDetect.Visibility v) { return castToPropertiesBackedByTransientFields(defaultChecker.withVisibility(method, v)); }
@Override public void handleEvent(Event arg0, AbstractServiceFactoryBean arg1, Object... arg2) { if (arg0.equals(Event.SERVER_CREATED) && (arg2[0] instanceof Server)) { Server server = (Server)arg2[0]; initialize(server, bus); } } });
@Override public void setupModule(SetupContext context) { BeanValidationAnnotationIntrospector introspector = new BeanValidationAnnotationIntrospector(context.getTypeFactory()); context.insertAnnotationIntrospector(introspector); }
private String getBeginIndentionWithReturnForList(int n) { return "[" + getEol() + getIndention(n); }
public static JsonSchemaLookup getSingleton() { if (singleton == null) { // lazy create one new JsonSchemaLookup().init(); } return singleton; }
@Override public IgnorePropertiesBackedByTransientFields withGetterVisibility(JsonAutoDetect.Visibility v) { return castToPropertiesBackedByTransientFields(defaultChecker.withGetterVisibility(v)); }
@Override public void handleEvent(Event arg0, AbstractServiceFactoryBean arg1, Object... arg2) { if (arg0.equals(Event.SERVER_CREATED) && (arg2[0] instanceof Server)) { Server server = (Server)arg2[0]; initialize(server, bus); } } });
@Override public void setupModule(SetupContext context) { BeanValidationAnnotationIntrospector introspector = new BeanValidationAnnotationIntrospector(context.getTypeFactory()); context.insertAnnotationIntrospector(introspector); }
private String getEndIndentionWithReturnForList(int n) { return getEol() + getIndention(n) + "]"; }
@Override public IgnorePropertiesBackedByTransientFields withVisibility(PropertyAccessor method, JsonAutoDetect.Visibility v) { return castToPropertiesBackedByTransientFields(defaultChecker.withVisibility(method, v)); }
private String getEndIndentionWithReturn(int n) { return getEol() + getIndention(n) + "}"; }
private String getBeginIndentionWithReturn(int n) { return "{" + getEol() + getIndention(n); }
private String getBeginIndentionWithReturnForList(int n) { return "[" + getEol() + getIndention(n); }
private String getEndIndentionWithReturn(int n) { return getEol() + getIndention(n) + "}"; }
private String getBeginIndentionWithReturn(int n) { return "{" + getEol() + getIndention(n); }