Class RpcSupportManagerImpl
java.lang.Object
ru.cg.webbpm.studio.subsystems.page_designer.rpc_support.impl.RpcSupportManagerImpl
- All Implemented Interfaces:
RpcSupportManager
,MetadataListener
@Component
public class RpcSupportManagerImpl
extends Object
implements MetadataListener, RpcSupportManager
- Author:
- Abdulin Ildar
-
Constructor Summary
ConstructorsConstructorDescriptionRpcSupportManagerImpl
(RpcGenerationService generationService, CompileManager compileManager, ProjectManager projectManager, MetadataManager metadataManager) -
Method Summary
Modifier and TypeMethodDescriptiongetMetadata
(ClassMetadata originalType) Получить метаданные сгенерированного rpcClient или modelboolean
isGenerated
(ClassMetadata metadata) boolean
isGeneratedFrom
(Class<?> sourceType, ClassMetadata generatedType) boolean
isModel
(ClassMetadata candidate) Проверить это Model или нетboolean
isRpcService
(ClassMetadata candidate) Проверить это rpcService или нетvoid
void
-
Constructor Details
-
RpcSupportManagerImpl
@Autowired public RpcSupportManagerImpl(RpcGenerationService generationService, CompileManager compileManager, ProjectManager projectManager, MetadataManager metadataManager)
-
-
Method Details
-
isRpcService
Description copied from interface:RpcSupportManager
Проверить это rpcService или нет- Specified by:
isRpcService
in interfaceRpcSupportManager
- Parameters:
candidate
- - метаданные класса- Returns:
- - true если да
-
isModel
Description copied from interface:RpcSupportManager
Проверить это Model или нет- Specified by:
isModel
in interfaceRpcSupportManager
- Parameters:
candidate
- - метаданные класса- Returns:
- - true если да
-
getMetadata
Description copied from interface:RpcSupportManager
Получить метаданные сгенерированного rpcClient или model- Specified by:
getMetadata
in interfaceRpcSupportManager
- Parameters:
originalType
- - оригинальный java класс- Returns:
- - null - если метаданные отсутствуют, это означает что компиляция ts еще не завершена.
-
isGeneratedFrom
- Specified by:
isGeneratedFrom
in interfaceRpcSupportManager
-
isGenerated
- Specified by:
isGenerated
in interfaceRpcSupportManager
-
metadataUpdated
public void metadataUpdated()- Specified by:
metadataUpdated
in interfaceMetadataListener
-
metadataUpdateFailed
public void metadataUpdateFailed()- Specified by:
metadataUpdateFailed
in interfaceMetadataListener
-