(incubating) | The Free and Open Productivity Suite

Developer's Guide

API

SDK

Tips 'n' Tricks

Miscellaneous

Content for OpenOffice.org version 3.3.
UDK 3.2.7 Java API Reference

com.sun.star.comp.helper
Class ComponentContextEntry

java.lang.Object
  extended by com.sun.star.comp.helper.ComponentContextEntry

public class ComponentContextEntry
extends Object

Component context entry for constructing ComponentContext objects.

A ComponentContextEntry is separated into a late-init and direct-value purpose. The first one is commonly used for singleton objects of the component context, that are raised on first-time retrieval of the key. You have to pass a com.sun.star.lang.XSingleComponentFactory or string (=> service name) object for this.


Field Summary
 Object m_lateInit
          if late init of service instance, set service name (String) or component factory (XSingleComponentFactory), null otherwise
 Object m_value
          set entry value
 
Constructor Summary
ComponentContextEntry(Object value)
          Creating a direct value component context entry.
ComponentContextEntry(Object lateInit, Object value)
          Creating a late-init singleton entry component context entry.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_lateInit

public Object m_lateInit
if late init of service instance, set service name (String) or component factory (XSingleComponentFactory), null otherwise


m_value

public Object m_value
set entry value

Constructor Detail

ComponentContextEntry

public ComponentContextEntry(Object lateInit,
                             Object value)
Creating a late-init singleton entry component context entry. The second parameter will be ignored and overwritten during instanciation of the singleton instance.

Parameters:
lateInit - object factory or service string
value - pass null (dummy separating from second ctor signature)

ComponentContextEntry

public ComponentContextEntry(Object value)
Creating a direct value component context entry.

Parameters:
value - pass null

UDK 3.2.7 Java API Reference

Apache OpenOffice is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.

Copyright & License
Apache and the Apache feather logos are trademarks of The Apache Software Foundation. OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.