org.reactive.beans.factory.config
Class DefaultPlaceholder

java.lang.Object
  extended by org.reactive.beans.factory.config.AbstractPlaceholder
      extended by org.reactive.beans.factory.config.DefaultPlaceholder
All Implemented Interfaces:
Placeholder

public class DefaultPlaceholder
extends AbstractPlaceholder

The default implementation of a placeholder.

Since:
16.12.2004
Version:
$Id: DefaultPlaceholder.java,v 1.3 2005/06/16 07:02:06 dan_washusen Exp $
Author:
Dan Washusen

Field Summary
static java.lang.String DEFAULT_TYPE_SEPERATOR
          The default string used to seperate the type from the key.
static java.lang.String TYPE_ARRAY
          a string defined to signify the String class.
static java.lang.String TYPE_LIST
          a string defined to signify the List class.
static java.lang.String TYPE_MAP
          a string defined to signify the Map class.
static java.lang.String TYPE_PROPS
          a string defined to signify the Properties class.
static java.lang.String TYPE_SET
          a string defined to signify the Set class.
static java.lang.String TYPE_STRING
          a string defined to signify the String class.
protected  java.lang.String typeSeperator
           
 
Fields inherited from class org.reactive.beans.factory.config.AbstractPlaceholder
key, type
 
Constructor Summary
DefaultPlaceholder(java.lang.String value)
           
 
Method Summary
protected  java.lang.String determineKey(java.lang.String value)
          Determines the key that the PlaceholderMatcher will use to evaluate the placeholder.
protected  java.lang.Class determineType(java.lang.String value)
          Determines the class that the placeholder will evaluate to.
 java.lang.String getTypeSeperator()
          Returns the value used to seperate type from the key.
 void setTypeSeperator(java.lang.String typeSeperator)
          Sets the value used to seperate type from the key.
 
Methods inherited from class org.reactive.beans.factory.config.AbstractPlaceholder
getKey, getType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_TYPE_SEPERATOR

public static final java.lang.String DEFAULT_TYPE_SEPERATOR
The default string used to seperate the type from the key.

See Also:
Constant Field Values

TYPE_STRING

public static final java.lang.String TYPE_STRING
a string defined to signify the String class.

See Also:
Constant Field Values

TYPE_ARRAY

public static final java.lang.String TYPE_ARRAY
a string defined to signify the String class.

See Also:
Constant Field Values

TYPE_LIST

public static final java.lang.String TYPE_LIST
a string defined to signify the List class.

See Also:
Constant Field Values

TYPE_SET

public static final java.lang.String TYPE_SET
a string defined to signify the Set class.

See Also:
Constant Field Values

TYPE_MAP

public static final java.lang.String TYPE_MAP
a string defined to signify the Map class.

See Also:
Constant Field Values

TYPE_PROPS

public static final java.lang.String TYPE_PROPS
a string defined to signify the Properties class.

See Also:
Constant Field Values

typeSeperator

protected java.lang.String typeSeperator
Constructor Detail

DefaultPlaceholder

public DefaultPlaceholder(java.lang.String value)
Method Detail

getTypeSeperator

public java.lang.String getTypeSeperator()
Returns the value used to seperate type from the key.

Returns:
the value used to seperate type from the key

setTypeSeperator

public void setTypeSeperator(java.lang.String typeSeperator)
Sets the value used to seperate type from the key.

Parameters:
typeSeperator - the value used to seperate type from the key

determineType

protected java.lang.Class determineType(java.lang.String value)
Description copied from class: AbstractPlaceholder
Determines the class that the placeholder will evaluate to.

Specified by:
determineType in class AbstractPlaceholder
Parameters:
value - The String representation of the placeholder
Returns:
The Class representation of the placeholders type

determineKey

protected java.lang.String determineKey(java.lang.String value)
Description copied from class: AbstractPlaceholder
Determines the key that the PlaceholderMatcher will use to evaluate the placeholder.

Specified by:
determineKey in class AbstractPlaceholder
Parameters:
value - The String representation of the placeholder
Returns:
The key that the PlaceholderMatcher will use to evaluate the placeholder


Copyright © 2004-2005 reactive.org. All Rights Reserved.