org.rhq.plugins.augeas
Class AugeasPluginLifecycleListener

java.lang.Object
  extended by org.rhq.plugins.augeas.AugeasPluginLifecycleListener
All Implemented Interfaces:
PluginLifecycleListener

public class AugeasPluginLifecycleListener
extends Object
implements PluginLifecycleListener

This is a plugin lifecycle listener object for the abstract Augeas plugin. It is used to copy the lenses from the standard location of 'META-INF/augeas-lenses/' to the data directory of the plugin, in the "augeas-lenses" subdirectory (LENSES_SUBDIRECTORY_NAME).

The list of lenses to copy is obtained from the file META-INF/augeas-lenses/list which is assumed to contain a list of all the files that should be on the augeas load path, each on a new line. This file is allowed to have comments - a line starting with '#' is considered a comment.

Author:
Lukas Krejci

Field Summary
static String LENSES_SUBDIRECTORY_NAME
           
 
Constructor Summary
AugeasPluginLifecycleListener()
           
 
Method Summary
 void initialize(PluginContext context)
           
 void shutdown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LENSES_SUBDIRECTORY_NAME

public static final String LENSES_SUBDIRECTORY_NAME
See Also:
Constant Field Values
Constructor Detail

AugeasPluginLifecycleListener

public AugeasPluginLifecycleListener()
Method Detail

initialize

public void initialize(PluginContext context)
                throws Exception
Specified by:
initialize in interface PluginLifecycleListener
Throws:
Exception

shutdown

public void shutdown()
Specified by:
shutdown in interface PluginLifecycleListener


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.