1 50 package org.apache.avalon.fortress.examples.extended.extensions; 51 52 import org.apache.avalon.framework.context.Context; 53 import org.apache.avalon.lifecycle.AbstractAccessor; 54 55 61 public class Extensions 62 extends AbstractAccessor 63 { 64 72 public void access( Object component, Context context ) 73 throws Exception  74 { 75 if( component instanceof SecurityManageable ) 76 { 77 ( (SecurityManageable)component ).secure( new SecurityManager () ); 80 } 81 } 82 } 83 84 | Popular Tags |