Package org.apache.avalon.framework.context

Examples of org.apache.avalon.framework.context.DefaultContext.makeReadOnly()


     * Creates and initializes a default context.
     */
    private static Context createDefaultContext()
    {
        DefaultContext context = new DefaultContext();
        context.makeReadOnly();
        return context;
    }

    /**
     * Creates a Configuration object from data read from an InputStream.
View Full Code Here


    if (m_context instanceof DefaultContext)
    {
      DefaultContext context = (DefaultContext) m_context;

      context.put(ContextManagerConstants.SERVICE_MANAGER, m_serviceManager);
      context.makeReadOnly();
    }

    svcDelegate = new KeelServiceableDelegate(m_serviceManager);
  }
View Full Code Here

                ContainerUtil.enableLogging(this.commands, getLogger().getChildLogger("thread.manager"));
                this.threads.register(this.commands);
               
                setup.put(Queue.ROLE, this.commands.getCommandSink());
               
                setup.makeReadOnly();
            } catch (Exception e) {
                getLogger().error("Could not set up the Command Manager", e);
            }
           
            this.classpath = (String)context.get(Constants.CONTEXT_CLASSPATH);
View Full Code Here

                }

            }
        }
        addContext( context );
        context.makeReadOnly();
        return context;
    }

    /**
     * This method may be overwritten by subclasses to put additional objects
View Full Code Here

               
                threads.register(commands);
               
                setup.put(Queue.ROLE, commands.getCommandSink());
               
                setup.makeReadOnly();
            } catch (Exception e) {
                getLogger().error("Could not set up the Command Manager", e);
            }
           
            this.classpath = (String)context.get(Constants.CONTEXT_CLASSPATH);
View Full Code Here

               
                threads.register(commands);
               
                setup.put(Queue.ROLE, commands.getCommandSink());
               
                setup.makeReadOnly();
            } catch (Exception e) {
                getLogger().error("Could not set up the Command Manager", e);
            }
           
            this.classpath = (String)context.get(Constants.CONTEXT_CLASSPATH);
View Full Code Here

                }

            }
        }
        addContext( context );
        context.makeReadOnly();
        return context;
    }

    /**
     * This method may be overwritten by subclasses to put additional objects
View Full Code Here

     * Creates and initializes a default context.
     */
    private static Context createDefaultContext()
    {
        DefaultContext context = new DefaultContext();
        context.makeReadOnly();
        return context;
    }

    /**
     * Creates a Configuration object from data read from an InputStream.
View Full Code Here

        defaultContext.put( ContextManagerConstants.LOG_CATEGORY, "fortress" );
        defaultContext.put( ClassLoader.class.getName(), classLoader );
        defaultContext.put( ContextManagerConstants.CONFIGURATION_URI, "conf/system.xconf" );
        defaultContext.put( ContextManagerConstants.LOGGER_MANAGER_CONFIGURATION_URI, "conf/logkit.xconf" );

        defaultContext.makeReadOnly();

        return defaultContext;
    }

    /**
 
View Full Code Here

        defaultContext.put( ContextManagerConstants.LOG_CATEGORY, "fortress" );
        defaultContext.put( ClassLoader.class.getName(), classLoader );
        defaultContext.put( ContextManagerConstants.CONFIGURATION_URI, "conf/system.xconf" );
        defaultContext.put( ContextManagerConstants.LOGGER_MANAGER_CONFIGURATION_URI, "conf/logkit.xconf" );

        defaultContext.makeReadOnly();

        return defaultContext;
    }

    /**
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.