Nuxeo Enterprise Platform 5.4

org.nuxeo.runtime.binding
Class RuntimeServiceBinding

java.lang.Object
  extended by org.nuxeo.runtime.binding.RuntimeServiceBinding
All Implemented Interfaces:
Binding

public class RuntimeServiceBinding
extends java.lang.Object
implements Binding

Author:
Bogdan Stefanescu

Constructor Summary
RuntimeServiceBinding(java.lang.String bindingKey, ComponentInstance comp, java.lang.Class<?> serviceClass)
           
 
Method Summary
 java.lang.Object get()
          Gets the object instance.
 java.lang.String getKey()
          Gets the binding key.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuntimeServiceBinding

public RuntimeServiceBinding(java.lang.String bindingKey,
                             ComponentInstance comp,
                             java.lang.Class<?> serviceClass)
Method Detail

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

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

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.