Tabnine Logo
RiverMarshallerFactory.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.jboss.marshalling.river.RiverMarshallerFactory
constructor

Best Java code snippets using org.jboss.marshalling.river.RiverMarshallerFactory.<init> (Showing top 11 results out of 315)

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

@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

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

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

final RiverMarshallerFactory factory = new RiverMarshallerFactory();
final MarshallingConfiguration configuration = new MarshallingConfiguration();
configuration.setClassResolver(ModularClassResolver.getInstance(serviceModuleLoaderInjectedValue.getValue()));
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.eap/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.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: wildfly/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.jboss.eap/wildfly-client-all

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.jboss.as/jboss-as-ejb3

public synchronized void start(final StartContext startContext) throws StartException {
    final RiverMarshallerFactory factory = new RiverMarshallerFactory();
    final MarshallingConfiguration configuration = new MarshallingConfiguration();
    configuration.setClassResolver(ModularClassResolver.getInstance(serviceModuleLoaderInjectedValue.getValue()));
org.jboss.marshalling.riverRiverMarshallerFactory<init>

Javadoc

Construct a new instance of a River marshaller factory.

Popular methods of RiverMarshallerFactory

    Popular in Java

    • Updating database using SQL prepared statement
    • getSharedPreferences (Context)
    • getResourceAsStream (ClassLoader)
    • orElseThrow (Optional)
      Return the contained value, if present, otherwise throw an exception to be created by the provided s
    • BufferedImage (java.awt.image)
      The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
    • ConcurrentHashMap (java.util.concurrent)
      A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
    • JComboBox (javax.swing)
    • XPath (javax.xml.xpath)
      XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
    • BasicDataSource (org.apache.commons.dbcp)
      Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
    • Join (org.hibernate.mapping)
    • Top 12 Jupyter Notebook extensions
    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