org.jboss.services.binding.managed
Class ServiceBindingMapper

java.lang.Object
  extended by org.jboss.metatype.spi.values.MetaMapper<Map<String,Set<ServiceBinding>>>
      extended by org.jboss.services.binding.managed.ServiceBindingMapper

public class ServiceBindingMapper
extends org.jboss.metatype.spi.values.MetaMapper<Map<String,Set<ServiceBinding>>>

MetaMapper for a map of all ServiceBindings available, where keys are the name of a ServiceBindingSet and the values are the set of ServiceBindings associated with that binding set.

Author:
Brian Stansberry

Field Summary
static org.jboss.metatype.api.types.CollectionMetaType MAP_VALUE_TYPE
           
static org.jboss.metatype.api.types.CompositeMetaType SERVICE_BINDING_TYPE
           
static org.jboss.metatype.api.types.MapCompositeMetaType TYPE
           
 
Constructor Summary
ServiceBindingMapper()
           
 
Method Summary
 org.jboss.metatype.api.values.MetaValue createMetaValue(org.jboss.metatype.api.types.MetaType metaType, Map<String,Set<ServiceBinding>> object)
           
 org.jboss.metatype.api.types.MetaType getMetaType()
           
 Type mapToType()
           
 Map<String,Set<ServiceBinding>> unwrapMetaValue(org.jboss.metatype.api.values.MetaValue metaValue)
          This always returns null as ServiceBindings cannot be created from a meta value
 
Methods inherited from class org.jboss.metatype.spi.values.MetaMapper
getMetaMapper
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE

public static final org.jboss.metatype.api.types.MapCompositeMetaType TYPE

SERVICE_BINDING_TYPE

public static final org.jboss.metatype.api.types.CompositeMetaType SERVICE_BINDING_TYPE

MAP_VALUE_TYPE

public static final org.jboss.metatype.api.types.CollectionMetaType MAP_VALUE_TYPE
Constructor Detail

ServiceBindingMapper

public ServiceBindingMapper()
Method Detail

getMetaType

public org.jboss.metatype.api.types.MetaType getMetaType()
Overrides:
getMetaType in class org.jboss.metatype.spi.values.MetaMapper<Map<String,Set<ServiceBinding>>>

mapToType

public Type mapToType()
Overrides:
mapToType in class org.jboss.metatype.spi.values.MetaMapper<Map<String,Set<ServiceBinding>>>

createMetaValue

public org.jboss.metatype.api.values.MetaValue createMetaValue(org.jboss.metatype.api.types.MetaType metaType,
                                                               Map<String,Set<ServiceBinding>> object)
Specified by:
createMetaValue in class org.jboss.metatype.spi.values.MetaMapper<Map<String,Set<ServiceBinding>>>

unwrapMetaValue

public Map<String,Set<ServiceBinding>> unwrapMetaValue(org.jboss.metatype.api.values.MetaValue metaValue)
This always returns null as ServiceBindings cannot be created from a meta value

Specified by:
unwrapMetaValue in class org.jboss.metatype.spi.values.MetaMapper<Map<String,Set<ServiceBinding>>>


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.