Codota Logo
BaseMarshallerBuilder
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • Smart code suggestions by Codota
}
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

  • Finding current android device location
  • onRequestPermissionsResult (Fragment)
  • setContentView (Activity)
  • startActivity (Activity)
  • FileOutputStream (java.io)
    A file output stream is an output stream for writing data to aFile or to a FileDescriptor. Whether
  • BigInteger (java.math)
    Immutable arbitrary-precision integers. All operations behave as if BigIntegers were represented in
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • MessageFormat (java.text)
    MessageFormat provides a means to produce concatenated messages in language-neutral way. Use this to
  • StringTokenizer (java.util)
    The string tokenizer class allows an application to break a string into tokens. The tokenization met
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now