org.eclipse.webdav.internal.kernel
Class ContextFactory

java.lang.Object
  extended by org.eclipse.webdav.internal.kernel.ContextFactory
All Implemented Interfaces:
IContextFactory

public class ContextFactory
extends Object
implements IContextFactory


Field Summary
protected  IContext defaults
           
 
Constructor Summary
ContextFactory()
           
 
Method Summary
 IContext newContext()
          Create a new empty context.
 IContext newContext(IContext baseContext)
          Creates a new context based on the given context.
 void setDefaults(IContext defaultValues)
          Set the default values on the factory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaults

protected IContext defaults
Constructor Detail

ContextFactory

public ContextFactory()
Method Detail

newContext

public IContext newContext()
Description copied from interface: IContextFactory
Create a new empty context.

Specified by:
newContext in interface IContextFactory
Returns:
the new empty Context.

newContext

public IContext newContext(IContext baseContext)
Description copied from interface: IContextFactory
Creates a new context based on the given context.

The newly created context acts like an acetate layer over the base context: any changes made to the new context are confined to that layer and do not affect the base context; but changes to the base context show through to the new context unless masked by another change made to the new context (c.f. properties).

Specified by:
newContext in interface IContextFactory
Parameters:
baseContext - the default values for the new context.
Returns:
the new wrapping Context.

setDefaults

public void setDefaults(IContext defaultValues)
Set the default values on the factory. All contexts created by this factory will have these defaults.

Parameters:
defaultValues - the default values


Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.