public interface ServiceFactory
Service
factory interface.ModelContext.createServiceObjects(java.lang.String, java.lang.String, java.lang.Class)
Modifier and Type | Method and Description |
---|---|
<T> T |
createServiceObject(ModelContext context,
Service service,
Class<T> type)
Creates a new service object.
|
int |
getOrdinal()
Gets the ordinal number of the factory.
|
int getOrdinal()
<T> T createServiceObject(ModelContext context, Service service, Class<T> type) throws NullPointerException, ModelException
T
- The type of the service object.context
- The context to create a new service object with.service
- The service to create a new object of.type
- The class of the type of the service object.service
or null
, if the factory is not responsible for creating
service objects of type
.NullPointerException
- if context
, service
or type
is null
.ModelException
- if creating the service object fails.Copyright © 2005–2016 The JOMC Project. All rights reserved.