/** * Creates an instance of {@link SchemaContextImpl}. */ public SchemaContextImpl() { super(); _properties = XMLProperties.newInstance(); }
/** * Construct properties with given parent. Application and domain class loaders will be * initialized to the ones of the parent. <br/> * Note: This constructor is not intended for public use. Use one of the newInstance() methods * instead. * * @param parent Parent properties. */ public XMLProperties(final AbstractProperties parent) { super(parent); loadDefaultProperties(FILEPATH, FILENAME); }
/** * Factory method for a default XML properties instance. Application and domain class loaders will * be initialised to the one used to load this class. The properties instance returned will be a * CastorProperties with a XMLProperties and a CoreProperties instance as parents. The * CastorProperties holding user specific properties is the only one that can be modified by put() * and remove() methods. XMLProperties and CoreProperties are responsible to deliver Castor's * default values if they have not been overwritten by the user. * * @return Properties instance for Castor XML module. */ public static AbstractProperties newInstance() { AbstractProperties core = new CoreProperties(); AbstractProperties xml = new XMLProperties(core); AbstractProperties castor = new CastorProperties(xml); return castor; }
/** * Factory method for a XML properties instance that uses the specified class loaders. The * properties instance returned will be a CastorProperties with a XMLProperties and a * CoreProperties instance as parents. The CastorProperties holding user specific properties is * the only one that can be modified by put() and remove() methods. XMLProperties and * CoreProperties are responsible to deliver Castor's default values if they have not been * overwritten by the user. * * @param app {@link ClassLoader} to be used for all classes of Castor and its required libraries. * @param domain {@link ClassLoader} to be used for all domain objects. * @return Properties instance for Castor XML module. */ public static AbstractProperties newInstance(final ClassLoader app, final ClassLoader domain) { AbstractProperties core = new CoreProperties(app, domain); AbstractProperties xml = new XMLProperties(core); AbstractProperties castor = new CastorProperties(xml); return castor; }
public AbstractInternalContext() { _properties = XMLProperties.newInstance(); // TODO[WG]: remove once injection works _javaNaming = new JavaNamingImpl(this); }
/** * Factory method for a default CPA properties instance. Application and domain class * loaders will be initialized to the one used to load this class. The properties instance * returned will be a CastorProperties with a CPAProperties, a XMLProperties and a * CoreProperties instance as parents. The CastorProperties holding user specific properties * is the only one that can be modified by put() and remove() methods. CPAProperties, * XMLProperties and CoreProperties are responsble to deliver Castor's default values if they * have not been overwritten by the user. * * @return Properties instance for Castor CPA modul. */ public static AbstractProperties newInstance() { AbstractProperties core = new CoreProperties(); AbstractProperties cpa = new CPAProperties(core); AbstractProperties xml = new XMLProperties(cpa); AbstractProperties castor = new CastorProperties(xml); return castor; }
AbstractProperties rtconf = XMLProperties.newInstance();
/** * Factory method for a CPA properties instance that uses the specified class loaders. The * properties instance returned will be a CastorProperties with a CPAProperties, a * XMLProperties and a CoreProperties instance as parents. The CastorProperties * holding user specific properties is the only one that can be modified by put() and remove() * methods. CPAProperties, XMLProperties and CoreProperties are responsble to deliver * Castor's default values if they have not been overwritten by the user. * * @param app Classloader to be used for all classes of Castor and its required libraries. * @param domain Classloader to be used for all domain objects. * @return Properties instance for Castor CPA modul. */ public static AbstractProperties newInstance(final ClassLoader app, final ClassLoader domain) { AbstractProperties core = new CoreProperties(app, domain); AbstractProperties cpa = new CPAProperties(core); AbstractProperties xml = new XMLProperties(cpa); AbstractProperties castor = new CastorProperties(xml); return castor; }