Top Description Fields Constructors Methods
com.sun.star.comp.helper

public Class ComponentContextEntry

extends Object
Class Inheritance

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

Modifier and TypeField and Description
public Object
m_lateInit

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

public Object
m_value

set entry value

Constructor Summary

AccessConstructor and Description
public
ComponentContextEntry(Object
object factory or service string
lateInit
,
Object
pass null (dummy separating from second constructor signature)
value
)

Creating a late-init singleton entry component context entry.

public
ComponentContextEntry(Object
pass null
value
)

Creating a direct value component context entry.

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

m_lateInitback to summary
public Object m_lateInit

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

m_valueback to summary
public Object m_value

set entry value

Constructor Detail

ComponentContextEntryback to summary
public ComponentContextEntry(Object lateInit, Object value)

Creating a late-init singleton entry component context entry. The second parameter will be ignored and overwritten during instantiation of the singleton instance.

Parameters
lateInit:Object

object factory or service string

value:Object

pass null (dummy separating from second constructor signature)

ComponentContextEntryback to summary
public ComponentContextEntry(Object value)

Creating a direct value component context entry.

Parameters
value:Object

pass null