org.springframework.osgi.service.importer.support
Class ServiceReferenceEditor
java.lang.Object
java.beans.PropertyEditorSupport
org.springframework.osgi.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
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 |
ServiceReferenceEditor
public ServiceReferenceEditor()
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
Copyright © 2006-2009 Spring Framework. All Rights Reserved.