/** * @return The current thread's TypeMarshallingContext. */ public static TypeMarshallingContext getTypeMarshallingContext() { TypeMarshallingContext context = (TypeMarshallingContext)contexts.get(); if (context == null) { context = new TypeMarshallingContext(); TypeMarshallingContext.setTypeMarshallingContext(context); } return context; }
/** * Get current TypeMarshallingContext object * @return The current thread's TypeMarshallingContext. */ public static TypeMarshallingContext getTypeMarshallingContext() { TypeMarshallingContext context = contexts.get(); if (context == null) { context = new TypeMarshallingContext(); TypeMarshallingContext.setTypeMarshallingContext(context); } return context; }
/** * Get current TypeMarshallingContext object * @return The current thread's TypeMarshallingContext. */ public static TypeMarshallingContext getTypeMarshallingContext() { TypeMarshallingContext context = contexts.get(); if (context == null) { context = new TypeMarshallingContext(); TypeMarshallingContext.setTypeMarshallingContext(context); } return context; }