Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.eclipse.gemini.blueprint.service.importer.support
Class ServiceReferenceEditor

    java.lang.Object
      java.beans.PropertyEditorSupport
          org.eclipse.gemini.blueprint.service.importer.support.ServiceReferenceEditor

All Implemented Interfaces:
  PropertyEditor

    public class ServiceReferenceEditor

extends PropertyEditorSupport

`PropertyEditor` that converts an <osgi:reference> element into a `ServiceReference`. That is, it allows conversion between a Spring-managed OSGi service to a Spring-managed ServiceReference.

Automatically registered by `ConfigurableOsgiBundleApplicationContext` implementations.

Author:
  Costin Leau
See Also:
  `ImportedOsgiServiceProxy`

Constructor Summary
`ServiceReferenceEditor()`

Method Summary
`String` | `getAsText()` This implementation returns `null` to indicate that there is no appropriate text representation.
`void` | `setAsText(String text)` Converts the given text value to a ServiceReference.
`void` | `setValue(Object value)` Converts the given value to a ServiceReference.

Methods inherited from class java.beans.PropertyEditorSupport
`addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, supportsCustomEditor`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### ServiceReferenceEditor

    public ServiceReferenceEditor()

Method Detail

### setAsText

    public void setAsText(String text)
                   throws IllegalArgumentException

  Converts the given text value to a ServiceReference.

  Specified by:
    `setAsText` in interface `PropertyEditor`
  Overrides:
    `setAsText` in class `PropertyEditorSupport`
  Throws:
    `IllegalArgumentException`

### setValue

    public void setValue(Object value)

  Converts the given value to a ServiceReference.

  Specified by:
    `setValue` in interface `PropertyEditor`
  Overrides:
    `setValue` in class `PropertyEditorSupport`

### getAsText

    public String getAsText()

  This implementation returns `null` to indicate that there is no appropriate text representation.

  Specified by:
    `getAsText` in interface `PropertyEditor`
  Overrides:
    `getAsText` in class `PropertyEditorSupport`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2006-2012. All Rights Reserved.