Skip to content

adjust to allow full FW/1 as framework beanfactory#429

Open
brianharcourt wants to merge 3 commits into
atuttle:mainfrom
LoneBuffalo:main
Open

adjust to allow full FW/1 as framework beanfactory#429
brianharcourt wants to merge 3 commits into
atuttle:mainfrom
LoneBuffalo:main

Conversation

@brianharcourt

Copy link
Copy Markdown
  • Lucee 5.3.8.201
  • Java 1.8.0_242 (Amazon.com Inc.) 64bit
  • Taffy 3.6.0

My implemention instantiates FW1 as:

    application.endPoints = new framework.aop(variables.diLocation,variables.diConfig);
    variables.framework.beanFactory = application.endPoints;

To get it operating I needed to make these changes:

@netlify

netlify Bot commented Apr 5, 2022

Copy link
Copy Markdown

Deploy Preview for taffy-docs canceled.

Name Link
🔨 Latest commit ab72131
🔍 Latest deploy log https://app.netlify.com/sites/taffy-docs/deploys/624c4f20b6a1700008c29b05

@atuttle

atuttle commented Apr 13, 2022

Copy link
Copy Markdown
Owner

I've not used it, but since you're referencing framework.aop I assume this is actually AOP/1 instead of FW/1 or DI/1?

@brianharcourt

brianharcourt commented Apr 13, 2022

Copy link
Copy Markdown
Author

Ah - maybe I'm deploying FW/1 sub-optimally. I'm using it to get aop but I thought I was deploying the whole framework. FW/1 suggests that deploying the framework involves extends=framework.one but I'm extending taffy.core.api. The only way I could get aop was to instantiate as shown. If I tinker further I'll report here.

@atuttle

atuttle commented Apr 19, 2022

Copy link
Copy Markdown
Owner

AOP is a feature/addon for dependency injection. Indeed, aop.cfc extends DI/1:

https://github.com/framework-one/aop1/blob/bdc7b916a818bd2731c8d51122fe09f098258bba/aop.cfc#L1

Taffy supports using DI/1 as its bean factory but I've never tried it with AOP/1, which should work as a drop-in replacement for DI/1.

@netlify

netlify Bot commented May 30, 2023

Copy link
Copy Markdown

Deploy Preview for taffy-docs canceled.

Name Link
🔨 Latest commit ecef947
🔍 Latest deploy log https://app.netlify.com/sites/taffy-docs/deploys/64bf32045d9ee10008afffe1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants