public class DefaultPollenServiceContext extends Object implements PollenServiceContext
| Modifier and Type | Field and Description |
|---|---|
protected PollenConfiguration |
configuration |
protected Locale |
locale |
protected PollenServiceFactory |
serviceFactory |
protected org.nuiton.topia.TopiaContext |
transaction |
protected VoteCountingStrategyProvider |
voteCountingStrategyProvider |
| Modifier | Constructor and Description |
|---|---|
protected |
DefaultPollenServiceContext(Locale locale,
org.nuiton.topia.TopiaContext transaction,
PollenConfiguration configuration,
PollenServiceFactory serviceFactory,
VoteCountingStrategyProvider voteCountingStrategyProvider) |
| Modifier and Type | Method and Description |
|---|---|
URL |
getApplicationURL() |
PollenConfiguration |
getConfiguration() |
Date |
getCurrentTime() |
Locale |
getLocale() |
PollenServiceFactory |
getServiceFactory() |
org.nuiton.topia.TopiaContext |
getTransaction() |
VoteCountingStrategyProvider |
getVoteCountingStrategyProvider() |
boolean |
isCanSendEmail() |
static PollenServiceContext |
newContext(Locale locale,
org.nuiton.topia.TopiaContext transaction,
PollenConfiguration configuration,
PollenServiceFactory serviceFactory,
VoteCountingStrategyProvider voteCountingStrategyProvider) |
static PollenServiceContext |
newContext(PollenServiceContext serviceContext,
org.nuiton.topia.TopiaContext transaction) |
<E extends PollenService> |
newService(Class<E> clazz) |
void |
setTransaction(org.nuiton.topia.TopiaContext transaction) |
protected org.nuiton.topia.TopiaContext transaction
protected PollenServiceFactory serviceFactory
protected PollenConfiguration configuration
protected Locale locale
protected VoteCountingStrategyProvider voteCountingStrategyProvider
protected DefaultPollenServiceContext(Locale locale, org.nuiton.topia.TopiaContext transaction, PollenConfiguration configuration, PollenServiceFactory serviceFactory, VoteCountingStrategyProvider voteCountingStrategyProvider)
public static PollenServiceContext newContext(PollenServiceContext serviceContext, org.nuiton.topia.TopiaContext transaction)
public static PollenServiceContext newContext(Locale locale, org.nuiton.topia.TopiaContext transaction, PollenConfiguration configuration, PollenServiceFactory serviceFactory, VoteCountingStrategyProvider voteCountingStrategyProvider)
public org.nuiton.topia.TopiaContext getTransaction()
getTransaction in interface PollenServiceContextpublic void setTransaction(org.nuiton.topia.TopiaContext transaction)
setTransaction in interface PollenServiceContextpublic Locale getLocale()
getLocale in interface PollenServiceContextpublic URL getApplicationURL()
getApplicationURL in interface PollenServiceContextpublic boolean isCanSendEmail()
isCanSendEmail in interface PollenServiceContextpublic <E extends PollenService> E newService(Class<E> clazz)
newService in interface PollenServiceContextpublic PollenConfiguration getConfiguration()
getConfiguration in interface PollenServiceContextpublic PollenServiceFactory getServiceFactory()
getServiceFactory in interface PollenServiceContextpublic Date getCurrentTime()
getCurrentTime in interface PollenServiceContextpublic VoteCountingStrategyProvider getVoteCountingStrategyProvider()
getVoteCountingStrategyProvider in interface PollenServiceContextCopyright © 2009-2012 CodeLutin. All Rights Reserved.