congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
BaseMarshallerBuilder
Code IndexAdd Tabnine to your IDE (free)

How to use
BaseMarshallerBuilder
in
org.kie.server.api.marshalling

Best Java code snippets using org.kie.server.api.marshalling.BaseMarshallerBuilder (Showing top 2 results out of 315)

origin: kiegroup/droolsjbpm-integration

  private static synchronized MarshallerBuilder getMarshallerBuilder() {
    ServiceLoader<MarshallerBuilder> builders = ServiceLoader.load(MarshallerBuilder.class);
    Iterator<MarshallerBuilder> it = builders.iterator();

    if (it.hasNext()) {
      MarshallerBuilder marshallerBuilder = it.next();
      logger.debug("Found custom marshaller builder {} that is going to be used instead of the default", marshallerBuilder);
      return marshallerBuilder;
    }

    return new BaseMarshallerBuilder();
  }
}
origin: kiegroup/droolsjbpm-integration

  @Override
  public Marshaller build(Set<Class<?>> classes, MarshallingFormat format, ClassLoader classLoader) {

    if (format.equals(MarshallingFormat.XSTREAM)) {

      return new XStreamMarshaller(classes, classLoader) {
        @Override
        protected void buildMarshaller(Set<Class<?>> classes, ClassLoader classLoader) {
          xstream = XStreamUtils.createNonTrustingXStream(new PureJavaReflectionProvider(), new DomDriver("UTF-8", new XmlFriendlyNameCoder("_-", "_")));
          xstream.addPermission(new WildcardTypePermission(new String[]{"org.kie.server.api.**"}));
          String[] voidDeny = {"void.class", "Void.class"};
          xstream.denyTypes(voidDeny);
        }
      };
    }

    return super.build(classes, format, classLoader);
  }
}
org.kie.server.api.marshallingBaseMarshallerBuilder

Javadoc

Default implementation of marshaller builder

Most used methods

  • <init>
  • build

Popular in Java

  • Making http post requests using okhttp
  • getSupportFragmentManager (FragmentActivity)
  • setContentView (Activity)
  • getContentResolver (Context)
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • ImageIO (javax.imageio)
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Option (scala)
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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