Tabnine Logo
XStreamConfiguration
Code IndexAdd Tabnine to your IDE (free)

How to use
XStreamConfiguration
in
org.apache.shindig.protocol.conversion.xstream

Best Java code snippets using org.apache.shindig.protocol.conversion.xstream.XStreamConfiguration (Showing top 5 results out of 315)

origin: org.apache.shindig/shindig-common

@Inject
public BeanXStreamConverter(XStreamConfiguration configuration) {
 ReflectionProvider rp = new PureJavaReflectionProvider();
 Mapper dmapper = new DefaultMapper(this.getClass().getClassLoader());
 /*
  * Putting this here means only one conversion per thread may be active at
  * any one time, but since the conversion process is atomic this will not
  * matter unless the class is extended.
  */
 writerStack = new ThreadSafeWriterStack();
 /*
  * create a driver that wires into a standard driver, and updates the stack
  * position.
  */
 HierarchicalStreamDriver driver = new StackDriver(new XppDriver(), writerStack, configuration.getNameSpaces());
 /*
  * Create an interface class mapper that understands class hierarchy for
  * single items
  */
 for (XStreamConfiguration.ConverterSet c : MAPPER_SCOPES) {
  converterMap.put(c, configuration.getConverterConfig(c, rp,dmapper, driver,writerStack));
 }
}
origin: apache/shindig

@Inject
public BeanXStreamConverter(XStreamConfiguration configuration) {
 ReflectionProvider rp = new PureJavaReflectionProvider();
 Mapper dmapper = new DefaultMapper(this.getClass().getClassLoader());
 /*
  * Putting this here means only one conversion per thread may be active at
  * any one time, but since the conversion process is atomic this will not
  * matter unless the class is extended.
  */
 writerStack = new ThreadSafeWriterStack();
 /*
  * create a driver that wires into a standard driver, and updates the stack
  * position.
  */
 HierarchicalStreamDriver driver = new StackDriver(new XppDriver(), writerStack, configuration.getNameSpaces());
 /*
  * Create an interface class mapper that understands class hierarchy for
  * single items
  */
 for (XStreamConfiguration.ConverterSet c : MAPPER_SCOPES) {
  converterMap.put(c, configuration.getConverterConfig(c, rp,dmapper, driver,writerStack));
 }
}
origin: org.gatein.shindig/shindig-common

@Inject
public BeanXStreamConverter(XStreamConfiguration configuration) {
 rp = new PureJavaReflectionProvider();
 Mapper dmapper = new DefaultMapper(this.getClass().getClassLoader());
 /*
  * Putting this here means only one conversion per thread may be active at
  * any one time, but since the conversion process is atomic this will not
  * matter unless the class is extended.
  */
 writerStack = new ThreadSafeWriterStack();
 /*
  * create a driver that wires into a standard driver, and updates the stack
  * position.
  */
 driver = new StackDriver(new XppDriver(), writerStack, configuration.getNameSpaces());
 /*
  * Create an interface class mapper that understands class hierarchy for
  * single items
  */
 for (XStreamConfiguration.ConverterSet c : MAPPER_SCOPES) {
  converterMap.put(c, configuration.getConverterConfig(c,rp,dmapper,driver,writerStack));
 }
}
origin: org.wso2.org.apache.shindig/shindig-common

@Inject
public BeanXStreamConverter(XStreamConfiguration configuration) {
 ReflectionProvider rp = new PureJavaReflectionProvider();
 Mapper dmapper = new DefaultMapper(this.getClass().getClassLoader());
 /*
  * Putting this here means only one conversion per thread may be active at
  * any one time, but since the conversion process is atomic this will not
  * matter unless the class is extended.
  */
 writerStack = new ThreadSafeWriterStack();
 /*
  * create a driver that wires into a standard driver, and updates the stack
  * position.
  */
 HierarchicalStreamDriver driver = new StackDriver(new XppDriver(), writerStack, configuration.getNameSpaces());
 /*
  * Create an interface class mapper that understands class hierarchy for
  * single items
  */
 for (XStreamConfiguration.ConverterSet c : MAPPER_SCOPES) {
  converterMap.put(c, configuration.getConverterConfig(c, rp,dmapper, driver,writerStack));
 }
}
origin: com.lmco.shindig/shindig-common

@Inject
public BeanXStreamConverter(XStreamConfiguration configuration) {
 rp = new PureJavaReflectionProvider();
 Mapper dmapper = new DefaultMapper(this.getClass().getClassLoader());
 /*
  * Putting this here means only one conversion per thread may be active at
  * any one time, but since the conversion process is atomic this will not
  * matter unless the class is extended.
  */
 writerStack = new ThreadSafeWriterStack();
 /*
  * create a driver that wires into a standard driver, and updates the stack
  * position.
  */
 driver = new StackDriver(new XppDriver(), writerStack, configuration.getNameSpaces());
 /*
  * Create an interface class mapper that understands class hierarchy for
  * single items
  */
 for (XStreamConfiguration.ConverterSet c : MAPPER_SCOPES) {
  converterMap.put(c, configuration.getConverterConfig(c,rp,dmapper,driver,writerStack));
 }
}
org.apache.shindig.protocol.conversion.xstreamXStreamConfiguration

Javadoc

The configuration for the XStream converter, this class encapsulates the lists and maps that define the how xstream converts the model.

Most used methods

  • getConverterConfig
    Generate the converter config.
  • getNameSpaces

Popular in Java

  • Reactive rest calls using spring rest template
  • getExternalFilesDir (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getApplicationContext (Context)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Top 25 Plugins for Webstorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now