Refine search
@Override public MarshallingConfiguration apply(MarshallingConfigurationContext context) { MarshallingConfiguration config = new MarshallingConfiguration(); config.setClassResolver(ModularClassResolver.getInstance(context.getModuleLoader())); config.setClassTable(new DynamicClassTable(context.getModule().getClassLoader())); return config; } },
/** * Construct a new instance using the given module loader. * * @param moduleLoader the module loader * @return the new instance */ public static ModularClassResolver getInstance(final ModuleLoader moduleLoader) { return new ModularClassResolver(moduleLoader); }
/** {@inheritDoc} */ public String[] getProxyInterfaces(final Class<?> proxyClass) throws IOException { final Class<?>[] interfaces = proxyClass.getInterfaces(); final String[] names = new String[interfaces.length]; for (int i = 0; i < interfaces.length; i++) { names[i] = getClassName(interfaces[i]); } return names; }
@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; }
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); } }
MarshallingConfiguration marshallingConfiguration = new MarshallingConfiguration(); marshallingConfiguration.setSerializedCreator(new SunReflectiveCreator()); marshallingConfiguration.setExternalizerCreator(new ReflectiveCreator()); marshallingConfiguration.setClassResolver(new ClassLoaderAwareClassResolver(ModularClassResolver.getInstance(componentConfiguration.getModuleLoader()), componentConfiguration.getModuleClassLoader())); marshallingConfiguration.setSerializabilityChecker(new StatefulSessionBeanSerializabilityChecker(componentConfiguration.getComponentClass())); marshallingConfiguration.setClassTable(new StatefulSessionBeanClassTable());
/** * {@inheritDoc} * @see org.jboss.msc.service.Service#start(org.jboss.msc.service.StartContext) */ @Override public void start(StartContext context) throws StartException { this.channel = this.channelRef.getValue(); this.marshallingConfig.setClassResolver(ModularClassResolver.getInstance(this.loaderRef.getValue())); this.marshallingConfig.setSerializedCreator(new SunReflectiveCreator()); this.marshallingConfig.setExternalizerCreator(new ReflectiveCreator()); this.marshallingConfig.setClassTable(CoreGroupClassTable.INSTANCE); try { this.start(); } catch (Exception e) { throw new StartException(e); } }
builder.serialization().classResolver(ModularClassResolver.getInstance(this.loader.get())); builder.classLoader(module.getClassLoader()); int id = Ids.MAX_ID;
@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); } }
builder.serialization().classResolver(ModularClassResolver.getInstance(this.loader.get())); builder.classLoader(module.getClassLoader()); int id = Ids.MAX_ID;
public HotRodMarshaller(Module module) { super(); super.baseCfg.setClassResolver(ModularClassResolver.getInstance(module.getModuleLoader())); super.baseCfg.setClassTable(new DynamicClassTable(module.getClassLoader())); super.baseCfg.setObjectTable(new ExternalizerObjectTable(module.getClassLoader())); } }
final MarshallingConfiguration configuration = new MarshallingConfiguration(); configuration.setClassResolver(ModularClassResolver.getInstance(serviceModuleLoaderInjectedValue.getValue())); this.configuration = configuration; this.factory = factory;
builder.serialization().classResolver(ModularClassResolver.getInstance(moduleLoader)); ClassLoader loader; try {
/** * Construct a new instance using the given module loader. * * @param moduleLoader the module loader * @return the new instance */ public static ModularClassResolver getInstance(final ModuleLoader moduleLoader) { return new ModularClassResolver(moduleLoader); }
/** {@inheritDoc} */ public String[] getProxyInterfaces(final Class<?> proxyClass) throws IOException { final Class<?>[] interfaces = proxyClass.getInterfaces(); final String[] names = new String[interfaces.length]; for (int i = 0; i < interfaces.length; i++) { names[i] = getClassName(interfaces[i]); } return names; }
@SuppressWarnings("deprecation") @Override public MarshallingConfiguration apply(MarshallingConfigurationContext context) { Module module = context.getModule(); ModuleDeployment deployment = context.getDeployment(); MarshallingConfiguration config = new MarshallingConfiguration(); config.setClassResolver(ModularClassResolver.getInstance(module.getModuleLoader())); config.setSerializabilityChecker(new StatefulSessionBeanSerializabilityChecker(deployment)); config.setClassTable(new StatefulSessionBeanClassTable()); config.setObjectTable(new EJBClientContextIdentifierObjectTable()); return config; } },
@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; }
/** * Construct a new instance using the given module loader. * * @param moduleLoader the module loader * @return the new instance */ public static ModularClassResolver getInstance(final ModuleLoader moduleLoader) { return new ModularClassResolver(moduleLoader); }
/** {@inheritDoc} */ public String[] getProxyInterfaces(final Class<?> proxyClass) throws IOException { final Class<?>[] interfaces = proxyClass.getInterfaces(); final String[] names = new String[interfaces.length]; for (int i = 0; i < interfaces.length; i++) { names[i] = getClassName(interfaces[i]); } return names; }
@Override public MarshallingConfiguration apply(MarshallingConfigurationContext context) { Module module = context.getModule(); ModuleDeployment deployment = context.getDeployment(); MarshallingConfiguration config = new MarshallingConfiguration(); config.setClassResolver(ModularClassResolver.getInstance(module.getModuleLoader())); config.setSerializabilityChecker(new StatefulSessionBeanSerializabilityChecker(deployment)); config.setClassTable(new StatefulSessionBeanClassTable()); config.setObjectResolver(new EJBClientContextIdentifierResolver()); config.setObjectTable(new ExternalizerObjectTable(module.getClassLoader())); return config; } },