|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.objectfactory.ObservedComponentFactory<T>
T
- the type of component this factory instantiates.public class ObservedComponentFactory<T>
Generic observed singleton factory.
Field Summary | |
---|---|
protected Class<T> |
interf
Deprecated. since 4.3 - this should be private - use getComponentType() instead.
(rename to "type" once made private) |
protected T |
observedObject
Deprecated. since 4.3 - this should be private - use getObservedObject() instead. |
Constructor Summary | |
---|---|
ObservedComponentFactory(String repository,
String path,
Class<T> type)
|
|
ObservedComponentFactory(String repository,
String path,
Class<T> type,
ComponentProvider componentProvider)
|
Method Summary | |
---|---|
protected Class<T> |
getComponentType()
|
protected Content2BeanTransformer |
getContent2BeanTransformer()
|
T |
getObservedObject()
Deprecated. since 4.3 - info.magnolia.objectfactory.DefaultComponentProvider#newInstance(Class) returns a proxy of the observed object instead of this factory, so this method shouldn't be needed publicly. |
protected void |
instantiateDefault()
|
protected boolean |
isConcrete(Class<?> clazz)
Deprecated. since 4.5, use Classes.isConcrete(Class) |
protected void |
load()
|
T |
newInstance()
Called by the ComponentProvider to create a component. |
void |
onEvent(javax.jcr.observation.EventIterator events)
|
protected void |
onRegister(Content node)
Deprecated. since 4.5, use #onRegister(Node) instead |
protected void |
reload()
|
protected void |
startObservation(String handle)
|
String |
toString()
|
protected T |
transformNode(Content node)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
@Deprecated protected final Class<T> interf
getComponentType()
instead.
(rename to "type" once made private)@Deprecated protected T observedObject
getObservedObject()
instead.
Constructor Detail |
---|
public ObservedComponentFactory(String repository, String path, Class<T> type)
public ObservedComponentFactory(String repository, String path, Class<T> type, ComponentProvider componentProvider)
Method Detail |
---|
public T newInstance()
ComponentFactory
newInstance
in interface ComponentFactory<T>
protected void startObservation(String handle)
public void onEvent(javax.jcr.observation.EventIterator events)
onEvent
in interface javax.jcr.observation.EventListener
protected void reload()
protected void load()
protected void instantiateDefault()
@Deprecated protected boolean isConcrete(Class<?> clazz)
Classes.isConcrete(Class)
@Deprecated protected void onRegister(Content node)
#onRegister(Node)
instead
protected T transformNode(Content node) throws Content2BeanException
Content2BeanException
protected Content2BeanTransformer getContent2BeanTransformer()
protected Class<T> getComponentType()
@Deprecated public T getObservedObject()
info.magnolia.objectfactory.DefaultComponentProvider#newInstance(Class)
returns a proxy of the observed object instead of this factory, so this method shouldn't be needed publicly.
DefaultClassFactory
, calling this shouldn't be needed,
newInstance()
returned a proxy, so you'll always see this object.
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |