Skip to content

Commit

Permalink
-n
Browse files Browse the repository at this point in the history
Move JCA support out of the core and to an extension that gets loaded as a plugin.
  • Loading branch information
Thomas Pelaia II committed Oct 18, 2013
1 parent 1a71f6a commit 59d39a9
Show file tree
Hide file tree
Showing 15 changed files with 11 additions and 2,238 deletions.
2 changes: 0 additions & 2 deletions lib/README.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ <h2>External Jar Files</h2>
<table class="data">
<caption>Third Party Jar Files</caption>
<tr> <th>File</th> <th>Version</th> <th>External Source</th> <th>Redistribution*</th> <th>Comment</th> </tr>
<tr> <td>caj.jar</td> <td class="numeric">1.1.5</td> <td><a href="http://caj.cosylab.com/" target="_blank">Cosylab CAJ</a></td> <td class="granted">Granted</td> <td></td> </tr>
<tr> <td>Jama.jar</td> <td class="numeric">1.0.2</td> <td><a href="http://math.nist.gov/javanumerics/jama/" target="_blank">JAMA (NIST)</a></td> <td class="okay">Okay</td> <td>Public Domain</td> </tr>
<tr> <td>jca.jar</td> <td class="numeric">2.3.2</td> <td><a href="http://jca.cosylab.com/downloads.html" target="_blank">Cosylab JCA</a></td> <td class="granted">Granted</td> <td></td> </tr>
<tr> <td>jsci-core.jar</td> <td class="numeric">1.1</td> <td><a href="http://jsci.sourceforge.net/">JSci</a></td> <td><a href="http://jsci.sourceforge.net/LICENSE" target="_blank">Restricted</a></td> <td></td> </tr>
</table>
<div style="font-size: small;">*Redistribution of <span class="granted" style="font-style: italic;">Granted</span> means that we have obtained permission from the maintainer of the jar file to redistribute it with Open XAL through our <a href="https://sourceforge.net/projects/xaldev/" target="_blank">Open XAL project</a> on Source Forge. Redistribution marked <span style="font-style: italic;" class="okay">Okay</span> means that it should be fine to redistribute based upon my best effort to interpret the published license.</div>
Expand Down
Binary file removed lib/caj.jar
Binary file not shown.
Binary file removed lib/jca.jar
Binary file not shown.
12 changes: 11 additions & 1 deletion src/xal/ca/ChannelFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import xal.tools.transforms.ValueTransform;

import java.util.*;
import java.lang.reflect.Method;


/**
Expand Down Expand Up @@ -135,7 +136,16 @@ static ChannelSystem defaultSystem() {
* @return a new channel factory
*/
static protected ChannelFactory newFactory() {
return new xal.jca.JcaChannelFactory();
try {
// effectively returns ChannelFactoryPlugin.getChannelFactoryInstance()
final Class<?> pluginClass = Class.forName( "xal.ca.ChannelFactoryPlugin" );
final Method creatorMethod = pluginClass.getMethod( "getChannelFactoryInstance" );
return (ChannelFactory)creatorMethod.invoke( null );
}
catch( Exception exception ) {
exception.printStackTrace();
throw new RuntimeException( "Failed to load the ChannelFactoryPlugin: " + exception.getMessage() );
}
}


Expand Down
42 changes: 0 additions & 42 deletions src/xal/jca/DbrStatusAdaptor.java

This file was deleted.

64 changes: 0 additions & 64 deletions src/xal/jca/DbrTimeAdaptor.java

This file was deleted.

85 changes: 0 additions & 85 deletions src/xal/jca/DbrValueAdaptor.java

This file was deleted.

76 changes: 0 additions & 76 deletions src/xal/jca/Getback.java

This file was deleted.

Loading

0 comments on commit 59d39a9

Please sign in to comment.