com.atlassian.core.ofbiz
Class CoreFactory

java.lang.Object
  extended by com.atlassian.core.ofbiz.CoreFactory

Deprecated. See individual methods for individual replacements. Since v5.0.

public class CoreFactory
extends Object

This is the Factory for "atlassian-core".

This was taken from atlassian-ofbiz and placed into its now rightful home of JIRA.


Constructor Summary
CoreFactory()
          Deprecated.  
 
Method Summary
static ActionDispatcher getActionDispatcher()
          Deprecated. See individual BackEnd Action or constants in ActionNames for particular replacement. Normally a Service or Manager class in Pico Dependency Injection container. Since v5.0.
static AssociationManager getAssociationManager()
          Deprecated. Get AssociationManager from dependency injection instead. Since v5.0.
static org.ofbiz.core.entity.GenericDelegator getGenericDelegator()
          Deprecated. Use OfBizDelegator or get DelegatorInterface from Pico instead. Since v5.0.
static void globalRefresh()
          Deprecated.  
static void setActionDispatcher(ActionDispatcher newActionDispatcher)
          Deprecated. Because use of getActionDispatcher() is deprecated. Since v5.0.
static void setAssociationManager(AssociationManager associationManager)
          Deprecated. Get AssociationManager from dependency injection instead. Since v5.0.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoreFactory

public CoreFactory()
Deprecated. 
Method Detail

globalRefresh

public static void globalRefresh()
Deprecated. 

getGenericDelegator

public static org.ofbiz.core.entity.GenericDelegator getGenericDelegator()
Deprecated. Use OfBizDelegator or get DelegatorInterface from Pico instead. Since v5.0.

Old way to get a GenericDelegator.

Normally you would use OfBizDelegator instead. Get OfBizDelegator injected or use ComponentAccessor.getOfBizDelegator().

If you really want the raw Entity Engine "delegator", get the instance of DelegatorInterface from Pico. You can call ComponentAccessor#getComponent(DelegatorInterface.class) if you need static access.

Returns:
GenericDelegator

getActionDispatcher

public static ActionDispatcher getActionDispatcher()
Deprecated. See individual BackEnd Action or constants in ActionNames for particular replacement. Normally a Service or Manager class in Pico Dependency Injection container. Since v5.0.

ActionDispatcher is used for running "non-web actions". The use of non-web actions is dperecated, and the few remaining instances are being replaced.

Returns:
ActionDispatcher

setActionDispatcher

public static void setActionDispatcher(ActionDispatcher newActionDispatcher)
Deprecated. Because use of getActionDispatcher() is deprecated. Since v5.0.

Presumably, this was intended soley for injecting a MockActionDispatcher for Unit Tests?

Parameters:
newActionDispatcher - ActionDispatcher

getAssociationManager

public static AssociationManager getAssociationManager()
Deprecated. Get AssociationManager from dependency injection instead. Since v5.0.

Old way to get AssociationManager

Returns:
AssociationManager

setAssociationManager

public static void setAssociationManager(AssociationManager associationManager)
Deprecated. Get AssociationManager from dependency injection instead. Since v5.0.

Presumably, this was intended to be useful for Unit Tests?

Parameters:
associationManager - AssociationManager


Copyright © 2002-2012 Atlassian. All Rights Reserved.