Class GroovyActionListener
- java.lang.Object
-
- org.apache.unomi.groovy.actions.listener.GroovyActionListener
-
- All Implemented Interfaces:
EventListener
,org.osgi.framework.BundleListener
,org.osgi.framework.SynchronousBundleListener
public class GroovyActionListener extends Object implements org.osgi.framework.SynchronousBundleListener
An implementation of a BundleListener for the Groovy language. It will load the groovy files in the folder META-INF/cxs/actions. The description of the action will be loaded from the ActionDescriptor annotation present in the groovy file. The script will be stored in the ES index groovyAction
-
-
Field Summary
Fields Modifier and Type Field Description static String
ENTRIES_LOCATION
-
Constructor Summary
Constructors Constructor Description GroovyActionListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bundleChanged(org.osgi.framework.BundleEvent event)
void
postConstruct(org.osgi.framework.BundleContext bundleContext)
void
preDestroy()
void
setGroovyActionsService(GroovyActionsService groovyActionsService)
-
-
-
Field Detail
-
ENTRIES_LOCATION
public static final String ENTRIES_LOCATION
- See Also:
- Constant Field Values
-
-
Method Detail
-
setGroovyActionsService
public void setGroovyActionsService(GroovyActionsService groovyActionsService)
-
postConstruct
public void postConstruct(org.osgi.framework.BundleContext bundleContext)
-
preDestroy
public void preDestroy()
-
bundleChanged
public void bundleChanged(org.osgi.framework.BundleEvent event)
- Specified by:
bundleChanged
in interfaceorg.osgi.framework.BundleListener
-
-