RiverMarshallerFactory
Code IndexAdd Codota to your IDE (free)

Best code snippets using org.jboss.marshalling.river.RiverMarshallerFactory(Showing top 15 results out of 315)

  • Common ways to obtain RiverMarshallerFactory
private void myMethod () {
RiverMarshallerFactory r =
  • new RiverMarshallerFactory()
  • Smart code suggestions by Codota
}
origin: wildfly/wildfly

@Override
public synchronized void start(StartContext startContext) throws StartException {
  final RiverMarshallerFactory factory = new RiverMarshallerFactory();
  final MarshallingConfiguration configuration = new MarshallingConfiguration();
  configuration.setClassResolver(ModularClassResolver.getInstance(moduleLoaderInjectedValue.getValue()));
  this.configuration = configuration;
  this.factory = factory;
}
origin: wildfly/wildfly

EJBServerChannel(final RemotingTransactionServer transactionServer, final Channel channel, final int version, final MessageTracker messageTracker) {
  this.transactionServer = transactionServer;
  this.channel = channel;
  this.version = version;
  this.messageTracker = messageTracker;
  final MarshallingConfiguration configuration = new MarshallingConfiguration();
  if (version < 3) {
    configuration.setClassTable(ProtocolV1ClassTable.INSTANCE);
    configuration.setObjectTable(ProtocolV1ObjectTable.INSTANCE);
    configuration.setObjectResolver(new ProtocolV1ObjectResolver(channel.getConnection(), true));
    configuration.setVersion(2);
  } else {
    configuration.setObjectTable(ProtocolV3ObjectTable.INSTANCE);
    configuration.setObjectResolver(new ProtocolV3ObjectResolver(channel.getConnection(), true));
    configuration.setVersion(4);
  }
  marshallerFactory = new RiverMarshallerFactory();
  this.configuration = configuration;
}
origin: wildfly/wildfly

private void doStart() {
  final RiverMarshallerFactory factory = new RiverMarshallerFactory();
  final MarshallingConfiguration configuration = new MarshallingConfiguration();
  configuration.setClassResolver(ModularClassResolver.getInstance(moduleLoader.getValue()));
  configuration.setVersion(3);
  this.configuration = configuration;
  this.factory = factory;
  if (pathRelativeTo != null) {
    callbackHandle = pathManager.getValue().registerCallback(pathRelativeTo, PathManager.ReloadServerCallback.create(), PathManager.Event.UPDATED, PathManager.Event.REMOVED);
  }
  baseDir = new File(pathManager.getValue().resolveRelativePathEntry(path, pathRelativeTo));
  if (!baseDir.exists()) {
    if (createIfNotExists) {
      if (!baseDir.mkdirs()) {
        throw EJB3_TIMER_LOGGER.failToCreateTimerFileStoreDir(baseDir);
      }
    } else {
      throw EJB3_TIMER_LOGGER.timerFileStoreDirNotExist(baseDir);
    }
  }
  if (!baseDir.isDirectory()) {
    throw EJB3_TIMER_LOGGER.invalidTimerFileStoreDir(baseDir);
  }
}
origin: wildfly/wildfly

@Override
public void start(final StartContext context) throws StartException {
  factory = new RiverMarshallerFactory();
  configuration = new MarshallingConfiguration();
  configuration.setClassResolver(ModularClassResolver.getInstance(moduleLoader.getValue()));
  managedReference = dataSourceInjectedValue.getValue().getReference();
  dataSource = (DataSource) managedReference.getInstance();
  final InputStream stream = DatabaseTimerPersistence.class.getClassLoader().getResourceAsStream("timer-sql.properties");
  sql = new Properties();
  try {
    sql.load(stream);
  } catch (IOException e) {
    throw new StartException(e);
  } finally {
    safeClose(stream);
  }
  extractDialects();
  investigateDialect();
  checkDatabase();
  if (refreshInterval > 0) {
    refreshTask = new RefreshTask();
    timerInjectedValue.getValue().schedule(refreshTask, refreshInterval, refreshInterval);
  }
}
origin: wildfly/wildfly

final RiverMarshallerFactory factory = new RiverMarshallerFactory();
final MarshallingConfiguration configuration = new MarshallingConfiguration();
configuration.setClassResolver(ModularClassResolver.getInstance(serviceModuleLoaderInjectedValue.getValue()));
origin: org.jenkins-ci.plugins.workflow/workflow-support

private List<Pickle> readPickles(int offset) throws IOException {
  BufferedInputStream es = openStreamAt(offset);
  try {
    MarshallingConfiguration config = new MarshallingConfiguration();
    config.setClassResolver(new SimpleClassResolver(classLoader));
    config.setObjectResolver(combine(ownerResolver));
    Unmarshaller eu = new RiverMarshallerFactory().createUnmarshaller(config);
    try {
      eu.start(Marshalling.createByteInput(es));
      return (List<Pickle>)eu.readObject();
    } catch (ClassNotFoundException e) {
      throw new IOException("Failed to read the stream",e);
    } finally {
      eu.finish();
    }
  } finally {
    closeQuietly(es);
  }
}
origin: org.jenkins-ci.plugins.workflow/workflow-support

marshaller = new RiverMarshallerFactory().createMarshaller(config);
marshaller.start(Marshalling.createByteOutput(dout));
pickling = true;
origin: org.jboss.as/jboss-as-ejb3

@Override
public synchronized void start(final StartContext context) {
  final RiverMarshallerFactory factory = new RiverMarshallerFactory();
  final MarshallingConfiguration configuration = new MarshallingConfiguration();
  configuration.setClassResolver(ModularClassResolver.getInstance(moduleLoader.getValue()));
  this.configuration = configuration;
  this.factory = factory;
  if (pathRelativeTo != null) {
    callbackHandle = pathManager.getValue().registerCallback(pathRelativeTo, PathManager.ReloadServerCallback.create(), PathManager.Event.UPDATED, PathManager.Event.REMOVED);
  }
  baseDir = new File(pathManager.getValue().resolveRelativePathEntry(path, pathRelativeTo));
  if (!baseDir.exists()) {
    if (createIfNotExists) {
      if (!baseDir.mkdirs()) {
        throw MESSAGES.failToCreateTimerFileStoreDir(baseDir);
      }
    } else {
      throw MESSAGES.timerFileStoreDirNotExist(baseDir);
    }
  }
  if (!baseDir.isDirectory()) {
    throw MESSAGES.invalidTimerFileStoreDir(baseDir);
  }
}
origin: org.wildfly/wildfly-undertow

@Override
public synchronized void start(StartContext startContext) throws StartException {
  final RiverMarshallerFactory factory = new RiverMarshallerFactory();
  final MarshallingConfiguration configuration = new MarshallingConfiguration();
  configuration.setClassResolver(ModularClassResolver.getInstance(moduleLoaderInjectedValue.getValue()));
  this.configuration = configuration;
  this.factory = factory;
}
origin: org.wildfly/wildfly-undertow

@Override
public synchronized void start(StartContext startContext) throws StartException {
  final RiverMarshallerFactory factory = new RiverMarshallerFactory();
  final MarshallingConfiguration configuration = new MarshallingConfiguration();
  configuration.setClassResolver(ModularClassResolver.getInstance(moduleLoaderInjectedValue.getValue()));
  this.configuration = configuration;
  this.factory = factory;
}
origin: org.jboss/jboss-ejb-client

EJBServerChannel(final RemotingTransactionServer transactionServer, final Channel channel, final int version, final MessageTracker messageTracker) {
  this.transactionServer = transactionServer;
  this.channel = channel;
  this.version = version;
  this.messageTracker = messageTracker;
  final MarshallingConfiguration configuration = new MarshallingConfiguration();
  if (version < 3) {
    configuration.setClassTable(ProtocolV1ClassTable.INSTANCE);
    configuration.setObjectTable(ProtocolV1ObjectTable.INSTANCE);
    configuration.setObjectResolver(new ProtocolV1ObjectResolver(channel.getConnection(), true));
    configuration.setVersion(2);
  } else {
    configuration.setObjectTable(ProtocolV3ObjectTable.INSTANCE);
    configuration.setObjectResolver(new ProtocolV3ObjectResolver(channel.getConnection(), true));
    configuration.setVersion(4);
  }
  marshallerFactory = new RiverMarshallerFactory();
  this.configuration = configuration;
}
origin: org.wildfly/wildfly-ejb3

private void doStart() {
  final RiverMarshallerFactory factory = new RiverMarshallerFactory();
  final MarshallingConfiguration configuration = new MarshallingConfiguration();
  configuration.setClassResolver(ModularClassResolver.getInstance(moduleLoader.getValue()));
  configuration.setVersion(3);
  this.configuration = configuration;
  this.factory = factory;
  if (pathRelativeTo != null) {
    callbackHandle = pathManager.getValue().registerCallback(pathRelativeTo, PathManager.ReloadServerCallback.create(), PathManager.Event.UPDATED, PathManager.Event.REMOVED);
  }
  baseDir = new File(pathManager.getValue().resolveRelativePathEntry(path, pathRelativeTo));
  if (!baseDir.exists()) {
    if (createIfNotExists) {
      if (!baseDir.mkdirs()) {
        throw EJB3_TIMER_LOGGER.failToCreateTimerFileStoreDir(baseDir);
      }
    } else {
      throw EJB3_TIMER_LOGGER.timerFileStoreDirNotExist(baseDir);
    }
  }
  if (!baseDir.isDirectory()) {
    throw EJB3_TIMER_LOGGER.invalidTimerFileStoreDir(baseDir);
  }
}
origin: org.wildfly/wildfly-ejb3

@Override
public void start(final StartContext context) throws StartException {
  factory = new RiverMarshallerFactory();
  configuration = new MarshallingConfiguration();
  configuration.setClassResolver(ModularClassResolver.getInstance(moduleLoader.getValue()));
  managedReference = dataSourceInjectedValue.getValue().getReference();
  dataSource = (DataSource) managedReference.getInstance();
  final InputStream stream = DatabaseTimerPersistence.class.getClassLoader().getResourceAsStream("timer-sql.properties");
  sql = new Properties();
  try {
    sql.load(stream);
  } catch (IOException e) {
    throw new StartException(e);
  } finally {
    safeClose(stream);
  }
  extractDialects();
  investigateDialect();
  checkDatabase();
  if (refreshInterval > 0) {
    refreshTask = new RefreshTask();
    timerInjectedValue.getValue().schedule(refreshTask, refreshInterval, refreshInterval);
  }
}
origin: org.wildfly/wildfly-ejb3

@Override
public void start(final StartContext context) throws StartException {
  factory = new RiverMarshallerFactory();
  configuration = new MarshallingConfiguration();
  configuration.setClassResolver(ModularClassResolver.getInstance(moduleLoader.getValue()));
  managedReference = dataSourceInjectedValue.getValue().getReference();
  dataSource = (DataSource) managedReference.getInstance();
  final InputStream stream = DatabaseTimerPersistence.class.getClassLoader().getResourceAsStream("timer-sql.properties");
  sql = new Properties();
  try {
    sql.load(stream);
  } catch (IOException e) {
    throw new StartException(e);
  } finally {
    safeClose(stream);
  }
  extractDialects();
  investigateDialect();
  checkDatabase();
  if (refreshInterval > 0) {
    refreshTask = new RefreshTask();
    timerInjectedValue.getValue().schedule(refreshTask, refreshInterval, refreshInterval);
  }
}
origin: org.wildfly/wildfly-ejb3

private void doStart() {
  final RiverMarshallerFactory factory = new RiverMarshallerFactory();
  final MarshallingConfiguration configuration = new MarshallingConfiguration();
  configuration.setClassResolver(ModularClassResolver.getInstance(moduleLoader.getValue()));
  configuration.setVersion(3);
  this.configuration = configuration;
  this.factory = factory;
  if (pathRelativeTo != null) {
    callbackHandle = pathManager.getValue().registerCallback(pathRelativeTo, PathManager.ReloadServerCallback.create(), PathManager.Event.UPDATED, PathManager.Event.REMOVED);
  }
  baseDir = new File(pathManager.getValue().resolveRelativePathEntry(path, pathRelativeTo));
  if (!baseDir.exists()) {
    if (createIfNotExists) {
      if (!baseDir.mkdirs()) {
        throw EJB3_TIMER_LOGGER.failToCreateTimerFileStoreDir(baseDir);
      }
    } else {
      throw EJB3_TIMER_LOGGER.timerFileStoreDirNotExist(baseDir);
    }
  }
  if (!baseDir.isDirectory()) {
    throw EJB3_TIMER_LOGGER.invalidTimerFileStoreDir(baseDir);
  }
}
org.jboss.marshalling.riverRiverMarshallerFactory

Javadoc

The River marshaller factory implementation.

Most used methods

  • <init>
    Construct a new instance of a River marshaller factory.
  • createMarshaller
  • createUnmarshaller

Popular classes and methods

  • getExternalFilesDir (Context)
  • setScale (BigDecimal)
    Returns a new BigDecimal instance with the specified scale. If the new scale is greater than the old
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • String (java.lang)
    An immutable sequence of characters/code units ( chars). A String is represented by array of UTF-16
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement.A servlet is a small Java program that runs within
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr

For IntelliJ IDEA,
Android Studio or Eclipse

  • Codota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutContact Us
  • Terms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)