driverNode.get(DEPLOYMENT_NAME.getName()); driverNode.get(DRIVER_MODULE_NAME.getName()).set(driver.getModuleName().getName()); driverNode.get(MODULE_SLOT.getName()).set(driver.getModuleName() != null ? driver.getModuleName().getSlot() : ""); driverNode.get(DRIVER_DATASOURCE_CLASS_NAME.getName()).set( driver.getDataSourceClassName() != null ? driver.getDataSourceClassName() : "");
/** {@inheritDoc} */ public void annotateProxyClass(final Marshaller marshaller, final Class<?> proxyClass) throws IOException { final Module module = Module.forClass(proxyClass); if (module == null) { marshaller.writeObject(null); } else { final ModuleIdentifier identifier = module.getIdentifier(); marshaller.writeObject(identifier.getName()); marshaller.writeObject(identifier.getSlot()); } }
public void writeClass(final Marshaller marshaller, final Class<?> clazz) throws IOException { marshaller.write(1); final Module module = Module.forClass(clazz); if (module == null) { marshaller.writeObject(null); } else { final ModuleIdentifier identifier = module.getIdentifier(); marshaller.writeObject(identifier.getName()); marshaller.writeObject(identifier.getSlot()); } final Class<?>[] interfaces = clazz.getInterfaces(); marshaller.writeInt(interfaces.length); for (Class<?> interfaze : interfaces) { marshaller.writeObject(interfaze.getName()); } } }
public void writeClass(final Marshaller marshaller, final Class<?> clazz) throws IOException { marshaller.write(0); final Module module = Module.forClass(clazz); if (module == null) { marshaller.writeObject(null); } else { final ModuleIdentifier identifier = module.getIdentifier(); marshaller.writeObject(identifier.getName()); marshaller.writeObject(identifier.getSlot()); } marshaller.writeObject(clazz.getName()); } }
/** {@inheritDoc} */ public void annotateClass(final Marshaller marshaller, final Class<?> clazz) throws IOException { final Module module = Module.forClass(clazz); if (module == null) { marshaller.writeObject(null); } else { final ModuleIdentifier identifier = module.getIdentifier(); marshaller.writeObject(identifier.getName()); marshaller.writeObject(identifier.getSlot()); } }
driverNode.get(DRIVER_MODULE_NAME.getName()).set(driver.getModuleName().getName()); driverNode.get(MODULE_SLOT.getName()).set( driver.getModuleName() != null ? driver.getModuleName().getSlot() : ""); driverNode.get(DRIVER_DATASOURCE_CLASS_NAME.getName()).set( driver.getDataSourceClassName() != null ? driver.getDataSourceClassName() : "");
/** * Create module path from module moduleIdentifier. * @param moduleIdentifier module identifier to create path for * @return path to module for given moduleIdentifier */ public static Path createModulePath(ModuleIdentifier moduleIdentifier){ return Paths.get(moduleIdentifier.getName() + "-" + moduleIdentifier.getSlot()); }
private static String toPathString(ModuleIdentifier moduleIdentifier) { final StringBuilder builder = new StringBuilder(40); builder.append(moduleIdentifier.getName().replace('.', File.separatorChar)); builder.append(File.separatorChar).append(moduleIdentifier.getSlot()); builder.append(File.separatorChar); return builder.toString(); }
public static ServiceName moduleSpecServiceName(ModuleIdentifier identifier, int phase) { if (!ServiceModuleLoader.isDynamicModule(identifier)) { throw ServerLogger.ROOT_LOGGER.missingModulePrefix(identifier, ServiceModuleLoader.MODULE_PREFIX); } return SERVICE_NAME.append(identifier.getName()).append(identifier.getSlot()).append("" + phase); } }
public static ServiceName moduleSpecServiceName(ModuleIdentifier identifier, int phase) { if (!ServiceModuleLoader.isDynamicModule(identifier)) { throw ServerMessages.MESSAGES.missingModulePrefix(identifier, ServiceModuleLoader.MODULE_PREFIX); } return SERVICE_NAME.append(identifier.getName()).append(identifier.getSlot()).append("" + phase); } }
public static ServiceName moduleSpecServiceName(ModuleIdentifier identifier, int phase) { if (!ServiceModuleLoader.isDynamicModule(identifier)) { throw ServerLogger.ROOT_LOGGER.missingModulePrefix(identifier, ServiceModuleLoader.MODULE_PREFIX); } return SERVICE_NAME.append(identifier.getName()).append(identifier.getSlot()).append("" + phase); } }
/** * Returns the corresponding ModuleSpec service name for the given module. * * @param identifier The module identifier * @return The service name of the ModuleSpec service */ public static ServiceName moduleSpecServiceName(ModuleIdentifier identifier) { if (!identifier.getName().startsWith(MODULE_PREFIX)) { ServerMessages.MESSAGES.missingModulePrefix(identifier, MODULE_PREFIX); } return MODULE_SPEC_SERVICE_PREFIX.append(identifier.getName()).append(identifier.getSlot()); }
/** * Returns the corresponding ModuleSpec service name for the given module. * * @param identifier The module identifier * @return The service name of the ModuleSpec service */ public static ServiceName moduleSpecServiceName(ModuleIdentifier identifier) { if (!isDynamicModule(identifier)) { throw ServerMessages.MESSAGES.missingModulePrefix(identifier, MODULE_PREFIX); } return MODULE_SPEC_SERVICE_PREFIX.append(identifier.getName()).append(identifier.getSlot()); }
/** * Returns the corresponding ModuleSpec service name for the given module. * * @param identifier The module identifier * @return The service name of the ModuleSpec service */ public static ServiceName moduleSpecServiceName(ModuleIdentifier identifier) { if (!isDynamicModule(identifier)) { throw ServerLogger.ROOT_LOGGER.missingModulePrefix(identifier, MODULE_PREFIX); } return MODULE_SPEC_SERVICE_PREFIX.append(identifier.getName()).append(identifier.getSlot()); }
/** {@inheritDoc} */ public void annotateClass(final Marshaller marshaller, final Class<?> clazz) throws IOException { final Module module = Module.forClass(clazz); if (module == null) { marshaller.writeObject(null); } else { final ModuleIdentifier identifier = module.getIdentifier(); marshaller.writeObject(identifier.getName()); marshaller.writeObject(identifier.getSlot()); } }
/** {@inheritDoc} */ public void annotateProxyClass(final Marshaller marshaller, final Class<?> proxyClass) throws IOException { final Module module = Module.forClass(proxyClass); if (module == null) { marshaller.writeObject(null); } else { final ModuleIdentifier identifier = module.getIdentifier(); marshaller.writeObject(identifier.getName()); marshaller.writeObject(identifier.getSlot()); } }
/** {@inheritDoc} */ public void annotateClass(final Marshaller marshaller, final Class<?> clazz) throws IOException { final Module module = Module.forClass(clazz); if (module == null) { marshaller.writeObject(null); } else { final ModuleIdentifier identifier = module.getIdentifier(); marshaller.writeObject(identifier.getName()); marshaller.writeObject(identifier.getSlot()); } }
/** {@inheritDoc} */ public void annotateProxyClass(final Marshaller marshaller, final Class<?> proxyClass) throws IOException { final Module module = Module.forClass(proxyClass); if (module == null) { marshaller.writeObject(null); } else { final ModuleIdentifier identifier = module.getIdentifier(); marshaller.writeObject(identifier.getName()); marshaller.writeObject(identifier.getSlot()); } }
/** {@inheritDoc} */ public void annotateProxyClass(final Marshaller marshaller, final Class<?> proxyClass) throws IOException { final Module module = Module.forClass(proxyClass); if (module == null) { marshaller.writeObject(null); } else { final ModuleIdentifier identifier = module.getIdentifier(); marshaller.writeObject(identifier.getName()); marshaller.writeObject(identifier.getSlot()); } }
/** {@inheritDoc} */ public void annotateClass(final Marshaller marshaller, final Class<?> clazz) throws IOException { final Module module = Module.forClass(clazz); if (module == null) { marshaller.writeObject(null); } else { final ModuleIdentifier identifier = module.getIdentifier(); marshaller.writeObject(identifier.getName()); marshaller.writeObject(identifier.getSlot()); } }