com.jpattern.ioc.xml.Context Maven / Gradle / Ivy
package com.jpattern.ioc.xml;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
import com.jpattern.ioc.AbstractReader;
import com.jpattern.ioc.ContextCreator;
import com.jpattern.ioc.IContextCreator;
import com.jpattern.ioc.IPropertyReader;
import com.jpattern.ioc.property.NullPropertyReader;
import com.jpattern.ioc.util.FilePath;
/**
* @author Claudio Quaresima - [email protected] - 23/ott/08 17:53:19
* @version 2.0 Francesco Cina - 27/nov/10
* @version $Id: $
*/
public class Context {
private List beanscontext = new ArrayList();
private List extracontext = new ArrayList();
private List subContextList = new ArrayList();
private String basePath;
public void add(BeanContext aObject) {
beanscontext.add(aObject);
}
public void add(ExtraContext aExtraContext) {
extracontext.add(aExtraContext);
}
public void addBeanContextList(List beanscontextList) {
for (int i=0; i extracontextList) {
for (int i=0; i getBeanscontext() {
if (beanscontext==null) {
beanscontext = new ArrayList();
}
return beanscontext;
}
public List getExtracontext() {
if (extracontext==null) {
extracontext = new ArrayList();
}
return extracontext;
}
public BeanContext get(String beanContextId) {
int i = beanscontext.indexOf(new BeanContext(new Id(beanContextId), null));
if (i != -1) {
return beanscontext.get(i);
}
for ( int sub=0; sub
© 2015 - 2025 Weber Informatics LLC | Privacy Policy