diff options
Diffstat (limited to 'jsf/plugins/org.eclipse.jst.jsf.common/src/org/eclipse/jst/jsf/common/internal/strategy/TestableProjectFactoryStrategy.java')
-rw-r--r-- | jsf/plugins/org.eclipse.jst.jsf.common/src/org/eclipse/jst/jsf/common/internal/strategy/TestableProjectFactoryStrategy.java | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/jsf/plugins/org.eclipse.jst.jsf.common/src/org/eclipse/jst/jsf/common/internal/strategy/TestableProjectFactoryStrategy.java b/jsf/plugins/org.eclipse.jst.jsf.common/src/org/eclipse/jst/jsf/common/internal/strategy/TestableProjectFactoryStrategy.java deleted file mode 100644 index 7028bf74d..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.common/src/org/eclipse/jst/jsf/common/internal/strategy/TestableProjectFactoryStrategy.java +++ /dev/null @@ -1,37 +0,0 @@ -package org.eclipse.jst.jsf.common.internal.strategy; - -import org.eclipse.core.resources.IProject; -import org.eclipse.core.runtime.QualifiedName; - - -/** - * Abstract class that, when given a project session key, - * will provide the instance of OUTPUT to use, or no result - * <p> - * Users need only set the project session property with the key and OUTPUT instance - * @param <OUTPUT> - */ -public abstract class TestableProjectFactoryStrategy<OUTPUT> implements ISimpleStrategy<IProject, OUTPUT> { - private QualifiedName _key; - - /** - * @param testableFactorySessionKey - project property session key for property value holding testable instance - */ - public TestableProjectFactoryStrategy(final QualifiedName testableFactorySessionKey) { - _key = testableFactorySessionKey; - } - - public OUTPUT perform(final IProject project) throws Exception { - if (_key != null && project != null) { - final Object factory = project.getSessionProperties().get(_key); - if (factory != null) - return (OUTPUT)factory; - } - return getNoResult(); - } - - public OUTPUT getNoResult() { - return null; - } - -} |