JIRA 4.0 : Non-managed classes
This page last changed on May 27, 2007 by dylan@atlassian.com.
Classes not managed by Picocontainer (eg. workflow conditions / functions, Services and Listeners, or JSP scriptlets) can still get pico-instantiated objects statically using static methods of ManagerFactory or ComponentManager.getInstance(). For example: ComponentManager.getInstance().getProjectManager(); ComponentManager.getInstance().getIssueFactory(); ManagerFactory.getCustomFieldManager(); //or ManagerFactory.getApplicationProperties(); Using ComponentManager.getInstance() is prefered as ManagerFactory will become obsolete. However, if a method that you are after does not exist on the ComponentManager, use ManagerFactory. |
![]() |
Document generated by Confluence on Oct 06, 2009 00:31 |