org.codehaus.xfire.service.invoker
Class ScopePolicyEditor
java.lang.Object
java.beans.PropertyEditorSupport
org.codehaus.xfire.service.invoker.ScopePolicyEditor
- All Implemented Interfaces:
- PropertyEditor
public class ScopePolicyEditor
- extends PropertyEditorSupport
This class is responsible for converting string to ScopePolicy object.
- Author:
- Ben Yu Feb 12, 2006 12:40:31 AM
Methods inherited from class java.beans.PropertyEditorSupport |
addPropertyChangeListener, firePropertyChange, getAsText, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScopePolicyEditor
public ScopePolicyEditor()
getDefaultScope
public static ScopePolicy getDefaultScope()
- To get the default scope policy when no policy is specified. This
implementation uses "application" as default.
toScopePolicy
public static ScopePolicy toScopePolicy(String policy)
- Convert a policy name to ScopePolicy object.
- Parameters:
policy
- the policy name.
- Returns:
- the ScopePolicy object.
setAsText
public void setAsText(String text)
- Specified by:
setAsText
in interface PropertyEditor
- Overrides:
setAsText
in class PropertyEditorSupport
Copyright © 2004-2013. All Rights Reserved.