public class ClientSmartFileFactory
extends java.lang.Object
client_optmization_mode = false o modo de otimização não será
usado. É possível cadastrar listeners do tipo ClientSmartFileListener
nesta fábrica para gerenciar possíveis falhas na utilização do modo
otimizado.| Constructor and Description |
|---|
ClientSmartFileFactory(java.util.List<ClientSmartFileListener> listeners)
Provisoriamente, esta fábrica obtem dados de otimização uma vez só no
momento da instanciação, assumindo que não serão alterados.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(ClientSmartFileListener listener)
Adiciona um listener
|
ClientSmartFile |
create(csbase.logic.ClientProjectFile cpf) |
csbase.logic.ClientOptimizationMode |
getClientOptimizationMode() |
static ClientSmartFileFactory |
getInstance() |
static ClientSmartFileFactory |
getInstance(java.util.List<ClientSmartFileListener> listeners) |
java.lang.String |
getLocalProjectPath() |
boolean |
isOptimizedMode() |
void |
removeListener(ClientSmartFileListener listener)
Remove um listener
|
public ClientSmartFileFactory(java.util.List<ClientSmartFileListener> listeners)
listeners - Listeners a serem cadastrados no construtorpublic static ClientSmartFileFactory getInstance()
public static ClientSmartFileFactory getInstance(java.util.List<ClientSmartFileListener> listeners)
listeners - Listeners que serão cadastrados no construtorpublic ClientSmartFile create(csbase.logic.ClientProjectFile cpf)
cpf - Instância de ClientProjectFilepublic csbase.logic.ClientOptimizationMode getClientOptimizationMode()
public java.lang.String getLocalProjectPath()
public boolean isOptimizedMode()
public void addListener(ClientSmartFileListener listener)
listener - public void removeListener(ClientSmartFileListener listener)
listener - Copyright © 2016. All Rights Reserved.