473,387 Members | 1,585 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Java Class Plugin Scheme Help Request

Bob
I'm interested in something of a plugin scheme. I'd like to be able
to add classes that implement a particular interface into a project
and have them automatically detected and used.

For example, let's say I have a web project running inside a servlet
container. I create an interface called PageObject. I then write a
few classes that implement PageObject. Let's say they're
HeaderPageObject, WeatherPageObject and FooterPageObject. I use a
servlet or jsp to build the page using page objects... call it
page.java.

I'd like to be able to: Add new classes that implement PageObject to a
project and have them automatically appear on the page.

How do I go about doing this?

Does my page.java code have any way of inspecting all classes
accessible to a project to find those that implement PageObject? If
so, isn't this going to take a long time?

What's the plugin model used in something like Winamp? A .dll is
dropped into a directory and code knows to search the directory for
..dll's and calls a pre-defined function.

Or is there some way to use the reflection classes? Or a JNDI lookup
scheme (remember that I want to be able to just add the class to the
project... no other configuration than that).

Clearly I'm a little lost but I think I have a valid requirement. Any
hints, directions, terminologies or links you can offer are greatly
appreciated.

Best,

Joe
Jul 17 '05 #1
0 1309

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: grant | last post by:
Our company has several packaged Java Applets -- some of them require a 1.3 and some require a 1.4 plugin. Is there anyway allow a user to quickly switch between plugin versions? I'd like to...
0
by: ewright66 | last post by:
I'm trying to access CiscoWorks 2000 from a home PC via VPN on a Win XP Home Edition computer. CiscoWorks requires Java JRE 1.3.1 to apparently open applets. When I try to bring up a Topology Map...
0
by: gen_www | last post by:
I am running an applet in Internet Explorer using <Object> tag and trying to attach to it using Netbeans IDE. However Netbeans is not able to attach to the applet. However I can use Netbeans to...
7
by: Klaus Friese | last post by:
Hi, i'm currently working on a plugin for Adobe InDesign and i have some problems with that. I'm not really a c++ guru, maybe somebody here has an idea how to solve this. The plugin is...
4
by: Christos Kalantzis | last post by:
Hello, I am trying to get JAVA UDFs working in DB2 8.2.2. I created a class, then I compiled it using with the IBM JDK included with DB2. I put the class in the sqllib folder and created a...
2
by: Tim Murray | last post by:
First of all, I don't know much about Java, even its naming and version numbering nomenclature, and second, if there is a better group to ask this in, please let me know. System is Mac with...
1
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej...
4
by: aotemp | last post by:
Does anyone know how to detect the version of Java installed? My website has an application that requires java 1.5+ to be installed, basically if the user doesn;t already have it installed I...
2
by: cloudy | last post by:
First at all, i'm sorry, i not good in writing english. i want to retrieve a string from my applet via Javascript. I use a method named ReadAll. public String ReadAll(String StrOut, String...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.