github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

roddotnet / clearcut

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 1
    • 0
  • Source
  • Commits
  • Network (0)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

PLEASE DOWNLOAD THE CODE FROM http://www.subcryption.com/clearcut.zip ... A simple Java dependency injection framework for geeks who have to use Java and don't like XML — Read more

  cancel

http://www.subcryption.com/clearcut.zip

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Added Git repo name to readme files 
pdxrod (author)
Mon Jun 02 11:49:45 -0700 2008
commit  6d71f6556337c68e1aa13879ebb00a3f19852f58
tree    ca7961bbb8e9a5cec8fa8ce489cd2bdc7af611b4
parent  09ea1cae4ae1e220f8361f41ab8eae22bd5bff71
clearcut /
name age
history
message
file README Loading commit data...
file app.ini
directory dat/
directory jar/
file read.me
file run.this
directory src/
README
The Clearcut Framework

No warranties are given for this software's suitability for
any purpose, security, safety or anything else - the software
is distributed AS IS and is governed by the Gnu Public License:
http://www.gnu.org/licenses/gpl-3.0.txt
git://github.com/roddotnet/clearcut.git

Clearcut is a simple dependency injection, database 
and logging framework for poor geeks who have to 
use Java and want to avoid the complexity of XML 
configuration files.

I wrote it because I had so much spare time once I started
creating web applications in Ruby on Rails, and because I
think Java and XML are like O.J. and Nicole. The only third
party framework included is JUnit, and the JDBC drivers for
MySQL and M$SQL. I avoided Hibernate, Spring and Log4J among
other examples of Java bloatware. The files are arranged in
the Maven convention (src/main/java and src/test/java) but
I found I could do without Maven itself. The tests are run by
finding the test classes using FIND and SED, venerable Unix
commands available on all platforms including Windows 
(using Cygwin). See run.this.

See http://martinfowler.com/articles/injection.html for
an explanation of dependency injection, and 
http://springframework.org/ for this pattern's most well-known 
implementation.

To build and test this framework, you need a version of Unix.
If using Windows, download Cygwin from http://www.cygwin.com/
and run the Cygwin shell. CD into the folder containing this
file and type 
./run.this
                        
This builds and tests the framework. You may need to install
MySQL (http://mysql.com) and run the script build.mysql in the
dat/ folder in the folder containing this file. If using
Microsoft SQL Server, run build.sqlserver and remove the
semicolon at the beginning of the m$_url line in file app.ini. 



You can also test the web application. 
For example, using the Geronimo application server: 
cp app.ini /opt/geronimo-1.0/clearcut-example-app.ini 
export JAVA_HOME=/usr/bin
cd /opt/geronimo-1.0/bin 
java -jar server.jar &
- this starts Geronimo 
(other application servers, eg. Tomcat, are similar).
           
Point web browser at
localhost:8080/console/portal/apps/apps_all         
Log in (User: system Password: manager)
Install new application
Choose clearcut-example.war from the bin/ folder below this one
Click 'Install'
Wait a few seconds
Point web browser at 
localhost:8080/clearcut-example
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server