org.jboss.marshalling.Marshalling.getMarshallerFactory()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(2.5k)|赞(0)|评价(0)|浏览(158)

本文整理了Java中org.jboss.marshalling.Marshalling.getMarshallerFactory()方法的一些代码示例,展示了Marshalling.getMarshallerFactory()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Marshalling.getMarshallerFactory()方法的具体详情如下:
包路径:org.jboss.marshalling.Marshalling
类名称:Marshalling
方法名:getMarshallerFactory

Marshalling.getMarshallerFactory介绍

[英]Get a marshaller factory, by name. Uses the thread's current context classloader, if available, to locate the factory.
[中]叫一个马歇尔工厂。使用线程的当前上下文类加载器(如果可用)来定位工厂。

代码示例

代码示例来源:origin: wildfly/wildfly

public SimpleMarshallingContextFactory() {
  this(Marshalling.getMarshallerFactory("river", Marshalling.class.getClassLoader()));
}

代码示例来源:origin: org.wildfly/wildfly-clustering-marshalling-jboss

public SimpleMarshallingContextFactory() {
  this(Marshalling.getMarshallerFactory("river", Marshalling.class.getClassLoader()));
}

代码示例来源:origin: org.jboss.as/jboss-as-clustering-web-spi

public SessionAttributeMarshallerFactoryImpl() {
  this(Marshalling.getMarshallerFactory("river", Marshalling.class.getClassLoader()));
}

代码示例来源:origin: org.infinispan/infinispan-commons

public JBossMarshallerFactory() {
 factory = (RiverMarshallerFactory) Marshalling.getMarshallerFactory(
    "river", Marshalling.class.getClassLoader());
 if (factory == null)
   throw new IllegalStateException(
    "River marshaller factory not found.  Verify that the JBoss Marshalling River jar archive is in the classpath.");
 registry = AccessController.doPrivileged(new PrivilegedAction<SerializableClassRegistry>() {
   @Override
   public SerializableClassRegistry run() {
     return SerializableClassRegistry.getInstance();
   }
 });
}

代码示例来源:origin: org.jboss.as/jboss-as-server

final MarshallerFactory factory = Marshalling.getMarshallerFactory("river", DomainServerMain.class.getClassLoader());
final Unmarshaller unmarshaller;
final ByteInput byteInput;

代码示例来源:origin: org.wildfly/wildfly-server

final MarshallerFactory factory = Marshalling.getMarshallerFactory("river", DomainServerMain.class.getClassLoader());
final Unmarshaller unmarshaller;
final ByteInput byteInput;

代码示例来源:origin: org.wildfly.core/wildfly-server

final MarshallerFactory factory = Marshalling.getMarshallerFactory("river", DomainServerMain.class.getClassLoader());
final Unmarshaller unmarshaller;
final ByteInput byteInput;

代码示例来源:origin: wildfly/wildfly-core

final MarshallerFactory factory = Marshalling.getMarshallerFactory("river", DomainServerMain.class.getClassLoader());
final Unmarshaller unmarshaller;
final ByteInput byteInput;

相关文章