org.nuxeo.runtime.binding
Class StaticBinding
java.lang.Object
org.nuxeo.runtime.binding.StaticBinding
- All Implemented Interfaces:
- Binding
public class StaticBinding
- extends java.lang.Object
- implements Binding
- Author:
- Bogdan Stefanescu
Method Summary |
java.lang.Object |
get()
Gets the object instance. |
java.lang.String |
getKey()
Gets the binding key. |
void |
set(java.lang.Object obj)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StaticBinding
public StaticBinding(java.lang.String bindingKey)
StaticBinding
public StaticBinding(java.lang.String bindingKey,
java.lang.Object obj)
get
public java.lang.Object get()
- Description copied from interface:
Binding
- Gets the object instance. Returns null if the binding is no more valid.
- Specified by:
get
in interface Binding
- Returns:
- the object instance or null
set
public void set(java.lang.Object obj)
getKey
public java.lang.String getKey()
- Description copied from interface:
Binding
- Gets the binding key.
The key is used by the service manager to cache bindings and should uniquely
identify the bound service.
- Specified by:
getKey
in interface Binding
- Returns:
- the binding key, never returns null
Copyright © 2010 Nuxeo SAS. All Rights Reserved.