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
createIndex()
void
postConstruct()
void
preDestroy()
void
setBundleContext(org.osgi.framework.BundleContext bundleContext)
void
setGroovyActionsService(GroovyActionsService groovyActionsService)
void
setPersistenceService(PersistenceService persistenceService)
-
-
-
Field Detail
-
ENTRIES_LOCATION
public static final String ENTRIES_LOCATION
- See Also:
- Constant Field Values
-
-
Method Detail
-
setPersistenceService
public void setPersistenceService(PersistenceService persistenceService)
-
setGroovyActionsService
public void setGroovyActionsService(GroovyActionsService groovyActionsService)
-
setBundleContext
public void setBundleContext(org.osgi.framework.BundleContext bundleContext)
-
postConstruct
public void postConstruct()
-
preDestroy
public void preDestroy()
-
bundleChanged
public void bundleChanged(org.osgi.framework.BundleEvent event)
- Specified by:
bundleChanged
in interfaceorg.osgi.framework.BundleListener
-
createIndex
public void createIndex()
-
-