@Component(value="cuba_ExtendedEntities")
public class ExtendedEntities
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected Metadata |
metadata |
static java.lang.String |
NAME |
protected java.util.Map<java.lang.Class,MetaClass> |
replacedMetaClasses |
Constructor and Description |
---|
ExtendedEntities()
Default constructor used by container at runtime and in server-side integration tests.
|
ExtendedEntities(Metadata metadata)
Constructor used in client-side tests.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Class |
getEffectiveClass(java.lang.Class originalClass)
Searches for an extended entity and returns it if found, otherwise returns the original entity.
|
java.lang.Class |
getEffectiveClass(MetaClass originalMetaClass)
Searches for an extended entity and returns it if found, otherwise returns the original entity.
|
java.lang.Class |
getEffectiveClass(java.lang.String entityName)
Searches for an extended entity and returns it if found, otherwise returns the original entity.
|
MetaClass |
getEffectiveMetaClass(java.lang.Class originalClass)
Searches for an extended entity and returns it if found, otherwise returns the original entity.
|
MetaClass |
getEffectiveMetaClass(MetaClass originalMetaClass)
Searches for an extended entity and returns it if found, otherwise returns the original entity.
|
MetaClass |
getEffectiveMetaClass(java.lang.String entityName)
Searches for an extended entity and returns it if found, otherwise returns the original entity.
|
java.lang.Class |
getExtendedClass(MetaClass originalMetaClass)
Searches for an extended entity and returns it if found.
|
java.lang.Class |
getOriginalClass(MetaClass extendedMetaClass)
Searches for an original entity for the provided extended entity.
|
MetaClass |
getOriginalMetaClass(MetaClass extendedMetaClass)
Searches for an original entity for the provided extended entity.
|
MetaClass |
getOriginalMetaClass(java.lang.String extendedEntityName)
Searches for an original entity for the provided extended entity.
|
MetaClass |
getOriginalOrThisMetaClass(MetaClass metaClass) |
void |
registerReplacedMetaClass(MetaClass metaClass)
INTERNAL.
|
public static final java.lang.String NAME
@Inject protected Metadata metadata
protected java.util.Map<java.lang.Class,MetaClass> replacedMetaClasses
public ExtendedEntities()
public ExtendedEntities(Metadata metadata)
public java.lang.Class getEffectiveClass(MetaClass originalMetaClass)
originalMetaClass
- original entitypublic java.lang.Class getEffectiveClass(java.lang.Class originalClass)
originalClass
- original entitypublic java.lang.Class getEffectiveClass(java.lang.String entityName)
entityName
- original entitypublic MetaClass getEffectiveMetaClass(MetaClass originalMetaClass)
originalMetaClass
- original entitypublic MetaClass getEffectiveMetaClass(java.lang.Class originalClass)
originalClass
- original entitypublic MetaClass getEffectiveMetaClass(java.lang.String entityName)
entityName
- original entity@Nullable public java.lang.Class getExtendedClass(MetaClass originalMetaClass)
originalMetaClass
- original entity@Nullable public java.lang.Class getOriginalClass(MetaClass extendedMetaClass)
extendedMetaClass
- extended entity@Nullable public MetaClass getOriginalMetaClass(MetaClass extendedMetaClass)
extendedMetaClass
- extended entity@Nullable public MetaClass getOriginalMetaClass(java.lang.String extendedEntityName)
extendedEntityName
- extended entitypublic MetaClass getOriginalOrThisMetaClass(MetaClass metaClass)
public void registerReplacedMetaClass(MetaClass metaClass)