org.apache.avalon.fortress.examples.extended.components
Class ExtendedComponentImpl

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.avalon.fortress.examples.extended.components.ExtendedComponentImpl
All Implemented Interfaces:
ExtendedComponent, SecurityManageable, org.apache.avalon.framework.logger.LogEnabled

public class ExtendedComponentImpl
extends org.apache.avalon.framework.logger.AbstractLogEnabled
implements ExtendedComponent, SecurityManageable

TestComponentImpl, demonstrating the use of a custom lifecycle stage SecurityManageable. This code does a simple access check for several files on the file system and logs the results accordingly.

Version:
CVS $Revision: 1.9 $ $Date: 2004/02/24 22:31:21 $
Author:
Avalon Development Team

Field Summary
 
Fields inherited from interface org.apache.avalon.fortress.examples.extended.components.ExtendedComponent
ROLE
 
Constructor Summary
ExtendedComponentImpl()
           
 
Method Summary
 void secure(SecurityManager manager)
          Pass a SecurityManager object to the component
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtendedComponentImpl

public ExtendedComponentImpl()
Method Detail

secure

public void secure(SecurityManager manager)
            throws SecurityException
Pass a SecurityManager object to the component

Specified by:
secure in interface SecurityManageable
Parameters:
manager - a SecurityManager value
Throws:
SecurityException


Copyright © 2003-2012 The Apache Software Foundation. All Rights Reserved.