org.codehaus.xfire.service.invoker
Class ScopePolicyEditor

java.lang.Object
  extended by java.beans.PropertyEditorSupport
      extended by org.codehaus.xfire.service.invoker.ScopePolicyEditor
All Implemented Interfaces:
java.beans.PropertyEditor

public class ScopePolicyEditor
extends java.beans.PropertyEditorSupport

This class is responsible for converting string to ScopePolicy object.

Author:
Ben Yu Feb 12, 2006 12:40:31 AM

Constructor Summary
ScopePolicyEditor()
           
 
Method Summary
static ScopePolicy getDefaultScope()
          To get the default scope policy when no policy is specified.
 void setAsText(java.lang.String text)
           
static ScopePolicy toScopePolicy(java.lang.String policy)
          Convert a policy name to ScopePolicy object.
 
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
 

Constructor Detail

ScopePolicyEditor

public ScopePolicyEditor()
Method Detail

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(java.lang.String policy)
Convert a policy name to ScopePolicy object.

Parameters:
policy - the policy name.
Returns:
the ScopePolicy object.

setAsText

public void setAsText(java.lang.String text)
Specified by:
setAsText in interface java.beans.PropertyEditor
Overrides:
setAsText in class java.beans.PropertyEditorSupport


Copyright © 2004-2011. All Rights Reserved.