org.sonatype.guice.plexus.converters
Class PlexusXmlBeanConverter
java.lang.Object
org.sonatype.guice.plexus.converters.PlexusXmlBeanConverter
- All Implemented Interfaces:
- PlexusBeanConverter
@Singleton
public final class PlexusXmlBeanConverter
- extends Object
- implements PlexusBeanConverter
PlexusBeanConverter
Module
that converts Plexus formatted XML into beans.
Method Summary |
Object |
convert(com.google.inject.TypeLiteral role,
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 |
PlexusXmlBeanConverter
public PlexusXmlBeanConverter()
convert
public Object convert(com.google.inject.TypeLiteral role,
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 typevalue
- The constant value
- Returns:
- Bean of the given type, based on the given constant value
Copyright © 2010-2011 Sonatype, Inc.. All Rights Reserved.