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

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

public class ExtendedComponentImpl
extends 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(java.lang.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(java.lang.SecurityManager manager)
            throws java.lang.SecurityException
Pass a SecurityManager object to the component

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


Copyright © 1997-2005 The Apache Software Foundation. All Rights Reserved.