本文整理汇总了Java中com.helger.commons.collection.impl.ICommonsList.isEmpty方法的典型用法代码示例。如果您正苦于以下问题:Java ICommonsList.isEmpty方法的具体用法?Java ICommonsList.isEmpty怎么用?Java ICommonsList.isEmpty使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.helger.commons.collection.impl.ICommonsList
的用法示例。
在下文中一共展示了ICommonsList.isEmpty方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: reinitProcessors
import com.helger.commons.collection.impl.ICommonsList; //导入方法依赖的package包/类
/**
* Reload all SPI implementations of
* {@link IAS4ServletPullRequestProcessorSPI}.
*/
public static void reinitProcessors ()
{
final ICommonsList <IAS4ServletPullRequestProcessorSPI> aProcessorSPIs = ServiceLoaderHelper.getAllSPIImplementations (IAS4ServletPullRequestProcessorSPI.class);
if (aProcessorSPIs.isEmpty ())
s_aLogger.warn ("No AS4 message processor is registered. All incoming pull requests will be discarded!");
else
s_aLogger.info ("Found " + aProcessorSPIs.size () + " AS4 pull requests processors");
s_aRWLock.writeLocked ( () -> s_aProcessors.setAll (aProcessorSPIs));
}
示例2: reinitProcessors
import com.helger.commons.collection.impl.ICommonsList; //导入方法依赖的package包/类
/**
* Reload all SPI implementations of {@link IAS4ServletMessageProcessorSPI}.
*/
public static void reinitProcessors ()
{
final ICommonsList <IAS4ServletMessageProcessorSPI> aProcessorSPIs = ServiceLoaderHelper.getAllSPIImplementations (IAS4ServletMessageProcessorSPI.class);
if (aProcessorSPIs.isEmpty ())
s_aLogger.warn ("No AS4 message processor is registered. All incoming messages will be discarded!");
else
if (s_aLogger.isDebugEnabled ())
s_aLogger.debug ("Found " + aProcessorSPIs.size () + " AS4 message processors");
s_aRWLock.writeLocked ( () -> s_aProcessors.setAll (aProcessorSPIs));
}
示例3: _createResponseUserMessage
import com.helger.commons.collection.impl.ICommonsList; //导入方法依赖的package包/类
/**
* With this method it is possible to send a usermessage back, the method will
* check if signing is needed and if the message needs to be a mime message.
*
* @param aResponseAttachments
* attachments if any that should be added
* @param aLeg
* the leg that should be used, to determine what if any security
* should be used
* @param aDoc
* the message that should be sent
* @throws WSSecurityException
* @throws MessagingException
*/
@Nonnull
private IAS4ResponseFactory _createResponseUserMessage (@Nonnull final ICommonsList <WSS4JAttachment> aResponseAttachments,
@Nonnull final PModeLeg aLeg,
@Nonnull final Document aDoc) throws WSSecurityException,
MessagingException
{
Document aResponseDoc;
if (aLeg.getSecurity () != null)
{
aResponseDoc = _signResponseIfNeeded (aResponseAttachments,
aLeg.getSecurity (),
aDoc,
aLeg.getProtocol ().getSOAPVersion ());
}
else
{
// No sign
aResponseDoc = aDoc;
}
if (aResponseAttachments.isEmpty ())
return new AS4ResponseFactoryXML (aResponseDoc);
final MimeMessage aMimeMsg = _generateMimeMessageForResponse (aResponseAttachments, aLeg, aResponseDoc);
return new AS4ResponseFactoryMIME (aMimeMsg);
}