edu.internet2.middleware.shibboleth.common.config.attribute.resolver.attributeDefinition
Class ScriptedAttributeDefinitionFactoryBean

java.lang.Object
  extended by org.springframework.beans.factory.config.AbstractFactoryBean
      extended by edu.internet2.middleware.shibboleth.common.config.attribute.resolver.AbstractResolutionPluginFactoryBean
          extended by edu.internet2.middleware.shibboleth.common.config.attribute.resolver.attributeDefinition.BaseAttributeDefinitionFactoryBean
              extended by edu.internet2.middleware.shibboleth.common.config.attribute.resolver.attributeDefinition.ScriptedAttributeDefinitionFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean

public class ScriptedAttributeDefinitionFactoryBean
extends BaseAttributeDefinitionFactoryBean

Scripted attribute factory.


Field Summary
private  String script
          The script.
private  String scriptFile
          The file to read the script from.
private  String scriptLanguage
          The scripting language used.
 
Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
logger
 
Constructor Summary
ScriptedAttributeDefinitionFactoryBean()
           
 
Method Summary
protected  Object createInstance()
          
 String getLanguage()
          Gets the scripting language being used.
 Class getObjectType()
          
 String getScript()
          Gets the script.
 String getScriptFile()
          Gets the file to read the script from.
 void setLanguage(String language)
          Sets the scripting language being used.
 void setScript(String newScript)
          Sets the script.
 void setScriptFile(String file)
          Sets the file to read the script from.
 
Methods inherited from class edu.internet2.middleware.shibboleth.common.config.attribute.resolver.attributeDefinition.BaseAttributeDefinitionFactoryBean
getAttributeEncoders, getDisplayDescriptions, getDisplayNames, getSourceAttributeId, isDependencyOnly, populateAttributeDefinition, setAttributeEncoders, setDependencyOnly, setDisplayDescriptions, setDisplayNames, setSourceAttributeId
 
Methods inherited from class edu.internet2.middleware.shibboleth.common.config.attribute.resolver.AbstractResolutionPluginFactoryBean
getDependencyIds, getPluginId, setDependencyIds, setPluginId
 
Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
afterPropertiesSet, destroy, destroyInstance, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

scriptLanguage

private String scriptLanguage
The scripting language used.


scriptFile

private String scriptFile
The file to read the script from.


script

private String script
The script.

Constructor Detail

ScriptedAttributeDefinitionFactoryBean

public ScriptedAttributeDefinitionFactoryBean()
Method Detail

getLanguage

public String getLanguage()
Gets the scripting language being used.

Returns:
scripting language being used

setLanguage

public void setLanguage(String language)
Sets the scripting language being used.

Parameters:
language - scripting language being used

getScript

public String getScript()
Gets the script.

Returns:
the script

setScript

public void setScript(String newScript)
Sets the script.

Parameters:
newScript - the script

getScriptFile

public String getScriptFile()
Gets the file to read the script from.

Returns:
file to read the script from

setScriptFile

public void setScriptFile(String file)
Sets the file to read the script from.

Parameters:
file - file to read the script from

getObjectType

public Class getObjectType()

Specified by:
getObjectType in interface org.springframework.beans.factory.FactoryBean
Specified by:
getObjectType in class org.springframework.beans.factory.config.AbstractFactoryBean

createInstance

protected Object createInstance()
                         throws Exception

Specified by:
createInstance in class org.springframework.beans.factory.config.AbstractFactoryBean
Throws:
Exception


Copyright © 1999-2012. All Rights Reserved.