現在の behaviour
The methods createInstance() or createInstanceWithArguments() of this interface must be
called with an 内部の type 指名する!. This 指名する is used internaly to search a suitable
(mostly the default) filter for this type then. The 設立する filter will be created, initialized
and returned then. 創造 of a filter by using it's 内部の filter 指名する 直接/まっすぐに can be
reached by using createInstanceWithArguments() with an optional 所有物/資産/財産 "FilterName" only.
See the に引き続いて example:
私的な com.sun.星/主役にする.uno.XInterface createFilterDirect( com.sun.星/主役にする.lang.XMultiServiceFactory xFilterFactory ,
java.lang.String sInternalFilterName )
{
com.sun.星/主役にする.beans.PropertyValue aFilterProp = new com.sun.星/主役にする.beans.PropertyValue();
aFilterProp.指名する = "FilterName";
aFilterProp.Value = sInternalFilterName;
com.sun.星/主役にする.uno.Any[] lProps = new com.sun.星/主役にする.uno.Any[1];
lProps[0] = aFilterProp;
java.lang.反対する aFilter = xFilterFactory.createInstanceWithArguments("", lProps);
return (com.sun.星/主役にする.uno.XInterface)UnoRuntime.queryInterface(com.sun.星/主役にする.uno.XInterface.class, aFilter);
}
提案するd behaviour
Searching of a suitable filter for a given 内部の type 指名する, must be done by the new interface
::com::sun::星/主役にする::コンテナ::XContainerQuery, 利用できる on this factory too.
The factory interface can be used to create filter 構成要素s by it's 内部の filter 指名する only.
How it can be distinguished?
The new prosposed 実施 will throw an ::com::sun::星/主役にする::コンテナ::NoSuchElementException
if the first parameter of createInstance() or createInstanceWithArguments() does not match to a valid コンテナ (means
filter) item. その上の it will throw an ::com::sun::星/主役にする::lang::IllegalArgumentException if the optional
parameter "FilterName" could not be (悪事,秘密などを)発見するd inside the argument 名簿(に載せる)/表(にあげる) of call createInstanceWithArguments().
Initialization of a filter 構成要素
Every filter, which was created by this factory can(!) be intialized with it's own configuration data
and may given optional arguments of the corresponding createInstanceWithArguments() request. To do so the filter
instance must support the optional interface ::com::sun::星/主役にする::lang::XInitialization.
The arguments parameter will have the に引き続いて structure:
- sequence< Any >[0] 含む/封じ込めるs a sequence< PropertyValue >,
which 代表する the configuration data 始める,決める of this filter. The used 所有物/資産/財産s are the same, as
they are 利用できる at the コンテナ interface of this factoyr service. (see below)
- Every に引き続いて item of the argument 名簿(に載せる)/表(にあげる) sequence< Any >[1..n] 含む/封じ込めるs the copied argument of the
corresponding createInstanceWithArguments() call. That means: Item 0 or the 初めの 名簿(に載せる)/表(にあげる) was copied as
item 1 of the 目的地 名簿(に載せる)/表(にあげる) ... etc.