public class UnitPlugin extends Plugin implements IBehaviorService
Plugin
that allows us to add the behavior through configuration instead of adding it
in code to our component.
See IBehaviorService
and IPlugin
for more info.ID, PATH
Constructor and Description |
---|
UnitPlugin(IPluginContext context,
IPluginConfig config) |
Modifier and Type | Method and Description |
---|---|
org.apache.wicket.behavior.Behavior |
getBehavior()
The behavior that should be added to the component at relative path
IBehaviorService.getComponentPath() . |
String |
getComponentPath() |
getPluginConfig, getPluginContext, start, stop
public UnitPlugin(IPluginContext context, IPluginConfig config)
public String getComponentPath()
getComponentPath
in interface IBehaviorService
public org.apache.wicket.behavior.Behavior getBehavior()
IBehaviorService
IBehaviorService.getComponentPath()
.
Returned behaviors should implement #equals(Object)
and #hashCode()
such that
multiple requests yield equivalent results.getBehavior
in interface IBehaviorService
Behavior
to be attached to the component.Copyright © 2007–2017 Hippo B.V. (http://www.onehippo.com). All rights reserved.