Created
June 1, 2016 16:58
-
-
Save cameroncf/45c6220faa6d64ff08b6c8ee1c45217c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
component | |
{ | |
public void function setBFKey( string key ) { | |
request.somethinglongandmysterious = key; | |
} | |
public string function getBFKey() { | |
return request.somethinglongandmysterious; | |
} | |
public any function getBean( required string beanName ) { | |
getBeanFactory().getBean( arguments.beanName ); | |
} | |
public any function getBeanFactory() { | |
return application[ getBFKey() ].factory; // get DI/1 factory | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment