Atualizar criar-plugin.md
This commit is contained in:
1 parent
70db48e645
commit
74153bcdf3
1 file changed
+4
-2
+4
-2
@@ -89,8 +89,10 @@ Repare em duas coisas:
|
||||
```
|
||||
pitiupi.chat.plugin.ChatPlugin
|
||||
```
|
||||
|
||||
Implementar `Plugin` diz "eu sei fazer o trabalho"; o arquivo em `META-INF/services` diz "aqui está quem sabe fazer o trabalho". Sem o segundo, o pitiupi nunca fica sabendo que a classe existe.
|
||||
----
|
||||
`Plugin` diz "eu sei fazer o trabalho";
|
||||
O arquivo em `META-INF/services` diz "aqui está quem sabe fazer o trabalho".
|
||||
Sem o segundo, o pitiupi nunca fica sabendo que a classe existe.
|
||||
---
|
||||
|
||||
## 5. Exemplo real: o `ChatPlugin`
|
||||
|
||||
Reference in new issue
Block a user