public interface IContentFactory
| Modifier and Type | Method and Description |
|---|---|
<ContentType extends IItem> |
canCreate(java.lang.Class<ContentType> contentType)
Can create.
|
<ContentType extends IItem,ConcreteType extends IItem> |
create(java.lang.Class<ContentType> clazz,
java.lang.String name,
java.util.UUID id)
Creates the.
|
<ContentType extends IItem,ConcreteType extends IItem> |
getConcreteTypeForContentType(java.lang.Class<ContentType> contentType)
Gets the concrete type for content type.
|
<ContentType extends IItem,ConcreteType extends IItem> |
register(java.lang.Class<ContentType> contentType,
java.lang.Class<ConcreteType> concreteType)
Register.
|
<ContentType extends IItem> boolean canCreate(java.lang.Class<ContentType> contentType)
ContentType - the generic typecontentType - the content type<ContentType extends IItem,ConcreteType extends IItem> ConcreteType create(java.lang.Class<ContentType> clazz, java.lang.String name, java.util.UUID id) throws ContentTypeNotBoundException
ContentType - the generic typeConcreteType - the generic typeclazz - the clazzname - the nameid - the idContentTypeNotBoundException - the content type not bound exception<ContentType extends IItem,ConcreteType extends IItem> java.lang.Class<ConcreteType> getConcreteTypeForContentType(java.lang.Class<ContentType> contentType)
ContentType - the generic typeConcreteType - the generic typecontentType - the content type<ContentType extends IItem,ConcreteType extends IItem> void register(java.lang.Class<ContentType> contentType, java.lang.Class<ConcreteType> concreteType) throws ContentTypeAlreadyBoundException, ContentTypeInvalidException
ContentType - the generic typeConcreteType - the generic typecontentType - the content typeconcreteType - the concrete typeContentTypeAlreadyBoundException - the content type already bound
exceptionContentTypeInvalidException - the content type invalid exception