Package org.jboss.hal.core
Class CoreStatementContext
- java.lang.Object
-
- org.jboss.hal.core.CoreStatementContext
-
- All Implemented Interfaces:
com.google.gwt.event.shared.EventHandler,ProfileSelectionEvent.ProfileSelectionHandler,ServerGroupSelectionEvent.ServerGroupSelectionHandler,HostSelectionEvent.HostSelectionHandler,ServerSelectionEvent.ServerSelectionHandler,StatementContext
public class CoreStatementContext extends Object implements StatementContext, ProfileSelectionEvent.ProfileSelectionHandler, ServerGroupSelectionEvent.ServerGroupSelectionHandler, HostSelectionEvent.HostSelectionHandler, ServerSelectionEvent.ServerSelectionHandler
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jboss.hal.meta.StatementContext
StatementContext.Expression
-
-
Field Summary
-
Fields inherited from interface org.jboss.hal.meta.StatementContext
NOOP
-
-
Constructor Summary
Constructors Constructor Description CoreStatementContext(Environment environment, com.google.web.bindery.event.shared.EventBus eventBus)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringdomainController()voidonHostSelection(HostSelectionEvent event)voidonProfileSelection(ProfileSelectionEvent event)voidonServerGroupSelection(ServerGroupSelectionEvent event)voidonServerSelection(ServerSelectionEvent event)Stringresolve(String resource, AddressTemplate template)Resolves a single value.String[]resolveTuple(String placeholder, AddressTemplate template)Resolves a tuple.StringselectedHost()StringselectedProfile()StringselectedServer()StringselectedServerConfig()StringselectedServerGroup()
-
-
-
Constructor Detail
-
CoreStatementContext
@Inject public CoreStatementContext(Environment environment, com.google.web.bindery.event.shared.EventBus eventBus)
-
-
Method Detail
-
resolve
public String resolve(String resource, AddressTemplate template)
Description copied from interface:StatementContextResolves a single value.- Specified by:
resolvein interfaceStatementContext
-
resolveTuple
public String[] resolveTuple(String placeholder, AddressTemplate template)
Description copied from interface:StatementContextResolves a tuple.- Specified by:
resolveTuplein interfaceStatementContext
-
onProfileSelection
public void onProfileSelection(ProfileSelectionEvent event)
- Specified by:
onProfileSelectionin interfaceProfileSelectionEvent.ProfileSelectionHandler
-
onServerGroupSelection
public void onServerGroupSelection(ServerGroupSelectionEvent event)
- Specified by:
onServerGroupSelectionin interfaceServerGroupSelectionEvent.ServerGroupSelectionHandler
-
onHostSelection
public void onHostSelection(HostSelectionEvent event)
- Specified by:
onHostSelectionin interfaceHostSelectionEvent.HostSelectionHandler
-
onServerSelection
public void onServerSelection(ServerSelectionEvent event)
- Specified by:
onServerSelectionin interfaceServerSelectionEvent.ServerSelectionHandler
-
domainController
public String domainController()
- Specified by:
domainControllerin interfaceStatementContext- Returns:
- the domain controller
-
selectedProfile
public String selectedProfile()
- Specified by:
selectedProfilein interfaceStatementContext- Returns:
- the selected profile
-
selectedServerGroup
public String selectedServerGroup()
- Specified by:
selectedServerGroupin interfaceStatementContext- Returns:
- the selected server group
-
selectedHost
public String selectedHost()
- Specified by:
selectedHostin interfaceStatementContext- Returns:
- the selected host
-
selectedServerConfig
public String selectedServerConfig()
- Specified by:
selectedServerConfigin interfaceStatementContext- Returns:
- the selected server config
-
selectedServer
public String selectedServer()
- Specified by:
selectedServerin interfaceStatementContext- Returns:
- the selected server
-
-