org.sonatype.guice.plexus.converters
Class PlexusXmlBeanConverter

java.lang.Object
  extended by org.sonatype.guice.plexus.converters.PlexusXmlBeanConverter
All Implemented Interfaces:
PlexusBeanConverter

@Singleton
public final class PlexusXmlBeanConverter
extends java.lang.Object
implements PlexusBeanConverter

PlexusBeanConverter Module that converts Plexus formatted XML into beans.


Constructor Summary
PlexusXmlBeanConverter()
           
 
Method Summary
 java.lang.Object convert(com.google.inject.TypeLiteral role, java.lang.String value)
          Converts the given constant value to a bean of the given type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlexusXmlBeanConverter

public PlexusXmlBeanConverter()
Method Detail

convert

public java.lang.Object convert(com.google.inject.TypeLiteral role,
                                java.lang.String value)
Description copied from interface: PlexusBeanConverter
Converts the given constant value to a bean of the given type.

Specified by:
convert in interface PlexusBeanConverter
Parameters:
role - The expected bean type
value - The constant value
Returns:
Bean of the given type, based on the given constant value


Copyright © 2010-2011 Sonatype, Inc.. All Rights Reserved.