References Deprecated
IEnvironment is deprecated or references (maybe indirectly) at least one deprecated element.
See corresponding docs for further information.
The java_environment implements the IEnvironment interface
defined in the uno runtime.
com.sun.star.uno.UnoRuntime , com.sun.star.uno.IEnvironment
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final Object | |
| private static final java_environment. | |
| private final java_environment. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object obj)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public Object | getContext()
Implements com. Gets the context of this environment. |
| public String | |
| public Object | getRegisteredInterface(String
object id of interface to be retrieved. oid, Type the type description of the interface to be retrieved. type)Implements com. Retrieves an interface identified by its object id and type from this environment. |
| public String | getRegisteredObjectIdentifier(Object
a registered interface. object)Implements com. Retrieves the object identifier for a registered interface from this environment. |
| private boolean | |
| public void | |
| public Object | registerInterface(Object object, String[] oid, Type type)
Implements com. Registers one UNO interface facet of an object. |
| public void | |
| public void | revokeInterface(String
object id of interface to be revoked. oid, Type the type description of the interface. type)Implements com. You have to revoke ANY interface that has been registered via this method. |
| context | back to summary |
|---|---|
| private final Object context | |
| localObjects | back to summary |
|---|---|
| private static final java_environment. | |
| proxies | back to summary |
|---|---|
| private final java_environment. | |
| java_environment | back to summary |
|---|---|
| public java_environment(Object context) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getContext | back to summary |
|---|---|
| public Object getContext() Implements com. Doc from com. Gets the context of this environment. | |
| getName | back to summary |
|---|---|
| public String getName() Implements com. Doc from com. Gets the name of this environment. | |
| getRegisteredInterface | back to summary |
|---|---|
| public Object getRegisteredInterface(String oid, Type type) Implements com. Retrieves an interface identified by its object id and type from this environment.
| |
| getRegisteredObjectIdentifier | back to summary |
|---|---|
| public String getRegisteredObjectIdentifier(Object object) Implements com. Retrieves the object identifier for a registered interface from this environment.
| |
| isProxy | back to summary |
|---|---|
| private boolean isProxy(Object object) | |
| list | back to summary |
|---|---|
| public void list() Implements com. Doc from com. Lists the registered objects to This is for debug purposes.
| |
| registerInterface | back to summary |
|---|---|
| public Object registerInterface(Object object, String[] oid, Type type) Implements com. Doc from com. Registers one UNO interface facet of an object. Such an object will typically be one of three things:
The object actually registered may differ from the specified
The registered object is held only weakly by the environment. After a
call to | |
| revokeAllProxies | back to summary |
|---|---|
| public void revokeAllProxies() Revokes all registered proxy interfaces. This method should be part of | |
| revokeInterface | back to summary |
|---|---|
| public void revokeInterface(String oid, Type type) Implements com. You have to revoke ANY interface that has been registered via this method.
| |
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final HashMap | |
| private final ReferenceQueue |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public synchronized void | |
| public synchronized Object | |
| public synchronized Object | |
| private void | |
| public synchronized boolean |
| level1map | back to summary |
|---|---|
| private final HashMap<String, java_environment. | |
| queue | back to summary |
|---|---|
| private final ReferenceQueue<Object> queue | |
| Registry | back to summary |
|---|---|
| private Registry() | |
| cleanUp | back to summary |
|---|---|
| private void cleanUp() | |
| clear | back to summary |
|---|---|
| public synchronized void clear() | |
| get | back to summary |
|---|---|
| public synchronized Object get(String oid, Type type) | |
| register | back to summary |
|---|---|
| public synchronized Object register(Object object, String oid, Type type) | |
| removeLevel2Entry | back to summary |
|---|---|
| private void removeLevel2Entry(java_environment. | |
| revoke | back to summary |
|---|---|
| public synchronized boolean revoke(String oid, Type type) | |
| Modifier and Type | Field and Description |
|---|---|
| public final HashMap |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Object |
| level2map | back to summary |
|---|---|
| public final HashMap<Type, java_environment. | |
| Level1Entry | back to summary |
|---|---|
| private Level1Entry() | |
| find | back to summary |
|---|---|
| public Object find(Type type) | |
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| public final String | |
| public final Type |
| Access | Constructor and Description |
|---|---|
| public |
| count | back to summary |
|---|---|
| private int count | |
| oid | back to summary |
|---|---|
| public final String oid | |
| type | back to summary |
|---|---|
| public final Type type | |
| Level2Entry | back to summary |
|---|---|
| public Level2Entry(String oid, Type type, Object object, ReferenceQueue<Object> queue) | |
| acquire | back to summary |
|---|---|
| public void acquire() | |
| release | back to summary |
|---|---|
| public boolean release() | |