本文整理了Java中org.jboss.marshalling.Marshalling.getMarshallerFactory()
方法的一些代码示例,展示了Marshalling.getMarshallerFactory()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Marshalling.getMarshallerFactory()
方法的具体详情如下:
包路径:org.jboss.marshalling.Marshalling
类名称: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;
内容来源于网络,如有侵权,请联系作者删除!