Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Frameworks vs. Bundles

I want to be able to add plugins for an application I am developing and as it is a development tool I want other people to be able to write their own plugins.

So my questions are what are the real differences between a framework and a loadable bundle? Which are more suited to being a plugin(accessing of headers, ect) ? And if I use loadable bundles how do I load them at runtime and access their functionality during development?

The plugins should not have to rely on other plugins.

like image 246
Nicholas Avatar asked Jan 04 '12 03:01

Nicholas


People also ask

What is framework bundle?

The FrameworkBundle defines the main framework configuration, from sessions and translations to forms, validation, routing and more.

What is a bundled library?

Bundled libraries provide resources to the class loader of the application that contains them and to the class loader of applications that have reference to the application which bundles the libraries. These libraries are part of the application EAR.

What is bundle in iOS?

A bundle is a directory in the file system that groups executable code and related resources such as images and sounds together in one place. In iOS and OS X, applications, frameworks, plug-ins, and other types of software are bundles.

What is an umbrella framework?

An umbrella framework simply includes and links with constituent subframeworks and other public frameworks. An umbrella framework encompasses all the technologies and APIs that define an application environment or a layer of system software.


1 Answers

Have you taken a look at NSBundle? It has all the methods you'll need to load the executable code at runtime. You'll want to define some sort of plugin interface to which any plugin will conform.

As for the difference between bundles and frameworks... Both bundles and frameworks are file structures that contain various resources that your app can use. A framework is like a library -- it's something your program links against when you build it. A bundle, on the other hand, is essentially a folder structure containing compiled code that you load at runtime.

like image 144
Caleb Avatar answered Oct 11 '22 13:10

Caleb