|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xwiki.rest.ComponentsObjectFactory
public class ComponentsObjectFactory
This class is used to provide Restlet/JAX-RS a way to instantiate components. Instances requested through this factory are created using the XWiki component manager. A special list stored in the current Restlet context is used in order to keep track of all the allocated components that have a "per-lookup" policy. This is needed in order to ensure proper release of those instances and to avoid memory leaks.
| Constructor Summary | |
|---|---|
ComponentsObjectFactory(org.xwiki.component.manager.ComponentManager componentManager)
Constructor |
|
| Method Summary | ||
|---|---|---|
|
getInstance(java.lang.Class<T> clazz)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ComponentsObjectFactory(org.xwiki.component.manager.ComponentManager componentManager)
componentManager - The component manager to be used.| Method Detail |
|---|
public <T> T getInstance(java.lang.Class<T> clazz)
throws org.restlet.ext.jaxrs.InstantiateException
getInstance in interface org.restlet.ext.jaxrs.ObjectFactoryorg.restlet.ext.jaxrs.InstantiateException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||