public abstract class PetStoreConnectionProvider<T extends PetStoreClient> extends Object implements org.mule.runtime.api.connection.ConnectionProvider<T>, org.mule.runtime.api.lifecycle.Lifecycle
| Modifier and Type | Field and Description |
|---|---|
protected List<Date> |
closedForHolidays |
protected String |
configName |
protected List<LocalDateTime> |
discountDates |
protected MuleContext |
muleContext |
protected Date |
openingDate |
protected String |
password |
protected org.mule.runtime.api.tls.TlsContextFactory |
tls |
protected String |
username |
| Constructor and Description |
|---|
PetStoreConnectionProvider() |
| Modifier and Type | Method and Description |
|---|---|
T |
connect() |
void |
disconnect(PetStoreClient connection) |
void |
dispose() |
int |
getDispose() |
int |
getInitialise() |
MuleContext |
getMuleContext() |
Date |
getOpeningDate() |
String |
getPassword() |
int |
getStart() |
int |
getStop() |
String |
getUsername() |
void |
initialise() |
void |
setPassword(String password) |
void |
setUsername(String username) |
void |
start() |
void |
stop() |
org.mule.runtime.api.connection.ConnectionValidationResult |
validate(PetStoreClient connection) |
@Inject protected MuleContext muleContext
@RefName protected String configName
@Parameter protected String username
@Parameter @Password protected String password
@Parameter @Optional protected org.mule.runtime.api.tls.TlsContextFactory tls
@Optional @Parameter protected Date openingDate
@Optional @Parameter protected List<LocalDateTime> discountDates
public T connect() throws org.mule.runtime.api.connection.ConnectionException
connect in interface org.mule.runtime.api.connection.ConnectionProvider<T extends PetStoreClient>org.mule.runtime.api.connection.ConnectionExceptionpublic void disconnect(PetStoreClient connection)
disconnect in interface org.mule.runtime.api.connection.ConnectionProvider<T extends PetStoreClient>public org.mule.runtime.api.connection.ConnectionValidationResult validate(PetStoreClient connection)
validate in interface org.mule.runtime.api.connection.ConnectionProvider<T extends PetStoreClient>public void dispose()
dispose in interface org.mule.runtime.api.lifecycle.Disposablepublic void initialise()
throws org.mule.runtime.api.lifecycle.InitialisationException
initialise in interface org.mule.runtime.api.lifecycle.Initialisableorg.mule.runtime.api.lifecycle.InitialisationExceptionpublic void start()
throws org.mule.runtime.api.exception.MuleException
start in interface org.mule.runtime.api.lifecycle.Startableorg.mule.runtime.api.exception.MuleExceptionpublic void stop()
throws org.mule.runtime.api.exception.MuleException
stop in interface org.mule.runtime.api.lifecycle.Stoppableorg.mule.runtime.api.exception.MuleExceptionpublic int getInitialise()
public int getStart()
public int getStop()
public int getDispose()
public MuleContext getMuleContext()
public String getUsername()
public void setUsername(String username)
public String getPassword()
public void setPassword(String password)
public Date getOpeningDate()
Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.