Package org.jboss.hal.meta
Class FilteringStatementContext
- java.lang.Object
-
- org.jboss.hal.meta.FilteringStatementContext
-
- All Implemented Interfaces:
StatementContext
- Direct Known Subclasses:
ResourceDescriptionStatementContext,SecurityContextStatementContext,SelectionAwareStatementContext
public class FilteringStatementContext extends Object implements StatementContext
Intercepts the resolution and allows to filter/replace certain statement values.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceFilteringStatementContext.FilterAllows to modify resource names and placeholders.-
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 FilteringStatementContext(StatementContext delegate, FilteringStatementContext.Filter filter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringdomainController()Stringresolve(String placeholder, AddressTemplate template)Resolves a single value.String[]resolveTuple(String placeholder, AddressTemplate template)Resolves a tuple.StringselectedHost()StringselectedProfile()StringselectedServer()StringselectedServerConfig()StringselectedServerGroup()
-
-
-
Constructor Detail
-
FilteringStatementContext
public FilteringStatementContext(StatementContext delegate, FilteringStatementContext.Filter filter)
-
-
Method Detail
-
resolve
public String resolve(String placeholder, 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
-
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
-
-