private static InputStream getConfigInputStream(URL resourceUrl) throws IOException { InputStream is; if (resourceUrl != null) { is = resourceUrl.openStream(); } else { is = MetroConfigLoader.class.getResourceAsStream(JAXWS_TUBES_JDK_XML_RESOURCE); if (is == null) throw LOGGER.logSevereException( new IllegalStateException( TubelineassemblyMessages.MASM_0001_DEFAULT_CFG_FILE_NOT_FOUND(JAXWS_TUBES_JDK_XML_RESOURCE))); } return is; }
private static InputStream getConfigInputStream(URL resourceUrl) throws IOException { InputStream is; if (resourceUrl != null) { is = resourceUrl.openStream(); } else { is = MetroConfigLoader.class.getResourceAsStream(JAXWS_TUBES_JDK_XML_RESOURCE); if (is == null) throw LOGGER.logSevereException( new IllegalStateException( TubelineassemblyMessages.MASM_0001_DEFAULT_CFG_FILE_NOT_FOUND(JAXWS_TUBES_JDK_XML_RESOURCE))); } return is; }
private static InputStream getConfigInputStream(URL resourceUrl) throws IOException { InputStream is; if (resourceUrl != null) { is = resourceUrl.openStream(); } else { is = MetroConfigLoader.class.getResourceAsStream(JAXWS_TUBES_JDK_XML_RESOURCE); if (is == null) throw LOGGER.logSevereException( new IllegalStateException( TubelineassemblyMessages.MASM_0001_DEFAULT_CFG_FILE_NOT_FOUND(JAXWS_TUBES_JDK_XML_RESOURCE))); } return is; }
private static URI resolveReference(String reference) { try { return new URI(reference); } catch (URISyntaxException ex) { throw LOGGER.logSevereException(new WebServiceException(TubelineassemblyMessages.MASM_0008_INVALID_URI_REFERENCE(reference), ex)); } }
private static URI resolveReference(String reference) { try { return new URI(reference); } catch (URISyntaxException ex) { throw LOGGER.logSevereException(new WebServiceException(TubelineassemblyMessages.MASM_0008_INVALID_URI_REFERENCE(reference), ex)); } }
private static URI resolveReference(String reference) { try { return new URI(reference); } catch (URISyntaxException ex) { throw LOGGER.logSevereException(new WebServiceException(TubelineassemblyMessages.MASM_0008_INVALID_URI_REFERENCE(reference), ex)); } }
private BackingStoreFactory getSafeBackingStoreFactory(final StoreType type) throws HighAvailabilityProviderException { try { return BackingStoreFactoryRegistry.getFactoryInstance(type.storeTypeId); } catch (BackingStoreException ex) { throw LOGGER.logSevereException(new HighAvailabilityProviderException("", ex)); // TODO message } }
private BackingStoreFactory getSafeBackingStoreFactory(final StoreType type) throws HighAvailabilityProviderException { try { return BackingStoreFactoryRegistry.getFactoryInstance(type.storeTypeId); } catch (BackingStoreException ex) { throw LOGGER.logSevereException(new HighAvailabilityProviderException("", ex)); // TODO message } }
private BackingStoreFactory getSafeBackingStoreFactory(final StoreType type) throws HighAvailabilityProviderException { try { return BackingStoreFactoryRegistry.getFactoryInstance(type.storeTypeId); } catch (BackingStoreException ex) { throw LOGGER.logSevereException(new HighAvailabilityProviderException("", ex)); // TODO message } }
public static BindingSubject createFaultMessageSubject(QName bindingName, QName operationName, QName messageName) { if (messageName == null) { throw LOGGER.logSevereException(new IllegalArgumentException(BindingApiMessages.BINDING_API_NO_FAULT_MESSAGE_NAME())); } final BindingSubject operationSubject = createOperationSubject(bindingName, operationName); return new BindingSubject(messageName, WsdlMessageType.FAULT, WsdlNameScope.MESSAGE, operationSubject); }
/** * Helper method that avoids the need for exception handling boilerplate code * when closing a {@link BackingStore} instance. * The original checked {@link BackingStoreException} is wrapped into a new * unchecked {@link HighAvailabilityProviderException}. * * @param backingStore {@link BackingStore} instance */ public static void close(BackingStore<?, ?> backingStore) { try { backingStore.close(); } catch (BackingStoreException ex) { throw LOGGER.logSevereException(new HighAvailabilityProviderException("", ex)); // TODO exception message } }
/** * Helper method that avoids the need for exception handling boilerplate code * when destroying a {@link BackingStore} instance. * The original checked {@link BackingStoreException} is wrapped into a new * unchecked {@link HighAvailabilityProviderException}. * * @param backingStore {@link BackingStore} instance */ public static void destroy(BackingStore<?, ?> backingStore) { try { backingStore.destroy(); } catch (BackingStoreException ex) { throw LOGGER.logSevereException(new HighAvailabilityProviderException("", ex)); // TODO exception message } }
/** * Helper method that avoids the need for exception handling boilerplate code * when closing a {@link BackingStore} instance. * The original checked {@link BackingStoreException} is wrapped into a new * unchecked {@link HighAvailabilityProviderException}. * * @param backingStore {@link BackingStore} instance */ public static void close(BackingStore<?, ?> backingStore) { try { backingStore.close(); } catch (BackingStoreException ex) { throw LOGGER.logSevereException(new HighAvailabilityProviderException("", ex)); // TODO exception message } }
public static BindingSubject createFaultMessageSubject(QName bindingName, QName operationName, QName messageName) { if (messageName == null) { throw LOGGER.logSevereException(new IllegalArgumentException(BindingApiMessages.BINDING_API_NO_FAULT_MESSAGE_NAME())); } final BindingSubject operationSubject = createOperationSubject(bindingName, operationName); return new BindingSubject(messageName, WsdlMessageType.FAULT, WsdlNameScope.MESSAGE, operationSubject); }
/** * Helper method that avoids the need for exception handling boilerplate code * when destroying a {@link BackingStore} instance. * The original checked {@link BackingStoreException} is wrapped into a new * unchecked {@link HighAvailabilityProviderException}. * * @param backingStore {@link BackingStore} instance */ public static void destroy(BackingStore<?, ?> backingStore) { try { backingStore.destroy(); } catch (BackingStoreException ex) { throw LOGGER.logSevereException(new HighAvailabilityProviderException("", ex)); // TODO exception message } }
/** * Helper method that avoids the need for exception handling boilerplate code * when destroying a {@link BackingStore} instance. * The original checked {@link BackingStoreException} is wrapped into a new * unchecked {@link HighAvailabilityProviderException}. * * @param backingStore {@link BackingStore} instance */ public static <K extends Serializable> void removeExpired(BackingStore<K, ?> backingStore) { try { backingStore.removeExpired(); } catch (BackingStoreException ex) { throw LOGGER.logSevereException(new HighAvailabilityProviderException("", ex)); // TODO exception message } } }
/** * Helper method that avoids the need for exception handling boilerplate code * when destroying a {@link BackingStore} instance. * The original checked {@link BackingStoreException} is wrapped into a new * unchecked {@link HighAvailabilityProviderException}. * * @param backingStore {@link BackingStore} instance */ public static <K extends Serializable> void removeExpired(BackingStore<K, ?> backingStore) { try { backingStore.removeExpired(); } catch (BackingStoreException ex) { throw LOGGER.logSevereException(new HighAvailabilityProviderException("", ex)); // TODO exception message } } }
/** * Helper method that avoids the need for exception handling boilerplate code * when removing data from a {@link BackingStore} instance. * The original checked {@link BackingStoreException} is wrapped into a new * unchecked {@link HighAvailabilityProviderException}. * * @param <K> backing store key parameter type * @param <V> backing store data parameter type * @param backingStore {@link BackingStore} instance * @param key stored data identifier */ public static <K extends Serializable, V extends Serializable> void removeFrom(BackingStore<K, V> backingStore, K key) { try { backingStore.remove(key); } catch (BackingStoreException ex) { throw LOGGER.logSevereException(new HighAvailabilityProviderException("", ex)); // TODO exception message } }
public static BindingSubject createFaultMessageSubject(QName bindingName, QName operationName, QName messageName) { if (messageName == null) { throw LOGGER.logSevereException(new IllegalArgumentException(BindingApiMessages.BINDING_API_NO_FAULT_MESSAGE_NAME())); } final BindingSubject operationSubject = createOperationSubject(bindingName, operationName); return new BindingSubject(messageName, WsdlMessageType.FAULT, WsdlNameScope.MESSAGE, operationSubject); }
/** * Helper method that avoids the need for exception handling boilerplate code * when destroying a {@link BackingStore} instance. * The original checked {@link BackingStoreException} is wrapped into a new * unchecked {@link HighAvailabilityProviderException}. * * @param backingStore {@link BackingStore} instance */ public static void destroy(BackingStore<?, ?> backingStore) { try { backingStore.destroy(); } catch (BackingStoreException ex) { throw LOGGER.logSevereException(new HighAvailabilityProviderException("", ex)); // TODO exception message } }