org.qi4j.api.structure
Interface Module

All Superinterfaces:
ActivationEventListenerRegistration, MetaInfoHolder, ObjectFactory, QueryBuilderFactory, ServiceFinder, TransientBuilderFactory, UnitOfWorkFactory, ValueBuilderFactory

public interface Module
extends ActivationEventListenerRegistration, MetaInfoHolder, ObjectFactory, TransientBuilderFactory, ValueBuilderFactory, UnitOfWorkFactory, QueryBuilderFactory, ServiceFinder

API for interacting with a Module. Instances of this can be accessed by using the Structure injection scope.


Method Summary
 java.lang.ClassLoader classLoader()
           
 EntityDescriptor entityDescriptor(java.lang.String typeName)
           
 java.lang.String name()
           
 ObjectDescriptor objectDescriptor(java.lang.String typeName)
           
 TransientDescriptor transientDescriptor(java.lang.String typeName)
           
 ValueDescriptor valueDescriptor(java.lang.String typeName)
           
 
Methods inherited from interface org.qi4j.api.activation.ActivationEventListenerRegistration
deregisterActivationEventListener, registerActivationEventListener
 
Methods inherited from interface org.qi4j.api.structure.MetaInfoHolder
metaInfo
 
Methods inherited from interface org.qi4j.api.object.ObjectFactory
injectTo, newObject
 
Methods inherited from interface org.qi4j.api.composite.TransientBuilderFactory
newTransient, newTransientBuilder
 
Methods inherited from interface org.qi4j.api.value.ValueBuilderFactory
newValue, newValueBuilder, newValueBuilderWithPrototype, newValueBuilderWithState, newValueFromSerializedState
 
Methods inherited from interface org.qi4j.api.unitofwork.UnitOfWorkFactory
currentUnitOfWork, getUnitOfWork, isUnitOfWorkActive, newUnitOfWork, newUnitOfWork, newUnitOfWork, newUnitOfWork
 
Methods inherited from interface org.qi4j.api.query.QueryBuilderFactory
newQueryBuilder
 
Methods inherited from interface org.qi4j.api.service.ServiceFinder
findService, findService, findServices, findServices
 

Method Detail

name

java.lang.String name()
Returns:
the Module's name

classLoader

java.lang.ClassLoader classLoader()
Returns:
the Module's ClassLoader

transientDescriptor

TransientDescriptor transientDescriptor(java.lang.String typeName)
Parameters:
typeName - name of a transient composite type
Returns:
the descriptor for a transient composite or null if the class could not be found or the transient composite is not visible

entityDescriptor

EntityDescriptor entityDescriptor(java.lang.String typeName)
Parameters:
typeName - name of an entity composite type
Returns:
the descriptor for an entity composite or null if the class could not be found or the entity composite is not visible

objectDescriptor

ObjectDescriptor objectDescriptor(java.lang.String typeName)
Parameters:
typeName - name of an object type
Returns:
the descriptor for an object or null if the class could not be found or the object is not visible

valueDescriptor

ValueDescriptor valueDescriptor(java.lang.String typeName)
Parameters:
typeName - name of a value composite type
Returns:
the descriptor for a value composite or null if the class could not be found or the value composite is not visible