All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edu.uiuc.ncsa.myproxy.oa4mp.server.MyProxyServiceEnvironment Maven / Gradle / Ivy

The newest version!
package edu.uiuc.ncsa.myproxy.oa4mp.server;

import edu.uiuc.ncsa.myproxy.MyProxyServiceFacade;
import edu.uiuc.ncsa.security.core.util.AbstractEnvironment;
import edu.uiuc.ncsa.security.core.util.MyLoggingFacade;

import java.util.LinkedList;
import java.util.List;
import java.util.Map;

/**
 * An environment that needs to have my proxy services available.
 * 

Created by Jeff Gaynor
* on 9/4/15 at 11:00 AM */ public class MyProxyServiceEnvironment extends AbstractEnvironment { public MyProxyServiceEnvironment() { } public MyProxyServiceEnvironment(MyLoggingFacade myLogger, List mfp ) { super(myLogger); this.mfps = mfp; } public MyProxyServiceEnvironment(MyLoggingFacade myLogger, List mfp, Map constants) { super(myLogger, constants); this.mfps = mfp; } List mfps; protected List myProxyServices; public List getMyProxyServices() { if (myProxyServices == null) { myProxyServices = new LinkedList(); // loop through each found component for (MyProxyFacadeProvider m : mfps) { myProxyServices.add(m.get()); } return myProxyServices; } return myProxyServices; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy