org.qi4j.tools.model.descriptor
Class ImportedServiceCompositeDescriptor

java.lang.Object
  extended by org.qi4j.tools.model.descriptor.ImportedServiceCompositeDescriptor
All Implemented Interfaces:
CompositeDescriptor, ModelDescriptor, MetaInfoHolder, HasTypes

public class ImportedServiceCompositeDescriptor
extends java.lang.Object
implements CompositeDescriptor

XXX Workaround for inconsistency in Qi4J core-api/spi ImportedServiceDescriptor wrapper as composite


Field Summary
protected  ImportedServiceDescriptor importedService
           
protected  java.util.List<java.lang.Class<?>> mixins
           
 
Constructor Summary
ImportedServiceCompositeDescriptor(ImportedServiceDescriptor importedService)
           
 
Method Summary
 ImportedServiceDescriptor importedService()
           
 boolean isAssignableTo(java.lang.Class<?> type)
           
<T> T
metaInfo(java.lang.Class<T> infoType)
          Get metadata that implements the given type.
 java.lang.Iterable<java.lang.Class<?>> mixinTypes()
           
 java.lang.Class<?> primaryType()
           
 java.lang.Class<? extends ServiceImporter> serviceImporter()
           
 java.lang.String toURI()
           
 java.lang.Iterable<java.lang.Class<?>> types()
           
 Visibility visibility()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

importedService

protected ImportedServiceDescriptor importedService

mixins

protected java.util.List<java.lang.Class<?>> mixins
Constructor Detail

ImportedServiceCompositeDescriptor

public ImportedServiceCompositeDescriptor(ImportedServiceDescriptor importedService)
Method Detail

importedService

public ImportedServiceDescriptor importedService()

mixinTypes

public java.lang.Iterable<java.lang.Class<?>> mixinTypes()
Specified by:
mixinTypes in interface CompositeDescriptor

primaryType

public java.lang.Class<?> primaryType()
Specified by:
primaryType in interface CompositeDescriptor

visibility

public Visibility visibility()
Specified by:
visibility in interface ModelDescriptor

metaInfo

public <T> T metaInfo(java.lang.Class<T> infoType)
Description copied from interface: MetaInfoHolder
Get metadata that implements the given type. The info is registered during assembly of the application.

Specified by:
metaInfo in interface MetaInfoHolder
Parameters:
infoType - the type of metadata to be returned
Returns:
the metadata for the given type, or null if no such metadata has been registered

types

public java.lang.Iterable<java.lang.Class<?>> types()
Specified by:
types in interface HasTypes

isAssignableTo

public boolean isAssignableTo(java.lang.Class<?> type)
Specified by:
isAssignableTo in interface ModelDescriptor

serviceImporter

public java.lang.Class<? extends ServiceImporter> serviceImporter()

toURI

public java.lang.String toURI()