|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.orchestra.FactoryFinder
public class FactoryFinder
A factory of factory classes, just like the JSF javax.faces.FactoryFinder class.
This class ensures that the user can configure their own instances of the critical orchestra factory classes by defining beans with appropriate names in the dependency injection framework. Orchestra code should always use the factory-finder methods here when creating object instances, instead of the "new" operator.
The factory classes returned here should all be thread-safe; they are effectively "application scoped" objects.
Field Summary | |
---|---|
static String |
CONVERSATION_CONTEXT_FACTORY_KEY
|
static String |
CONVERSATION_MANAGER_FACTORY_KEY
|
Constructor Summary | |
---|---|
FactoryFinder()
|
Method Summary | |
---|---|
static ConversationContextFactory |
getConversationContextFactory()
Return an object that implements interface ConversationContextFactory. |
static ConversationManagerFactory |
getConversationManagerFactory()
Return an object that implements interface ConversationManagerFactory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CONVERSATION_MANAGER_FACTORY_KEY
public static final String CONVERSATION_CONTEXT_FACTORY_KEY
Constructor Detail |
---|
public FactoryFinder()
Method Detail |
---|
public static ConversationManagerFactory getConversationManagerFactory()
Normally, the returned object will be an instance of ConversationManagerFactoryImpl.
public static ConversationContextFactory getConversationContextFactory()
Normally, the returned object will be an instance of ConversationContextFactoryImpl. However users can configure a bean in the DI framework to specify a different class - or to return an instance of ConversationContextFactoryImpl with a custom timeout value configured.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |