Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: com/newsfighter/layout/SkinFactory.java


1   /*
2    * SkinFactory.java
3    *
4    * Created on March 15, 2003, 1:27 AM
5    */
6   
7   package com.newsfighter.layout;
8   
9   import javax.ejb.EJBObject;
10  import java.rmi.RemoteException;
11  
12  /**SkinFactory is a CMP persistent object.  It performs a crawl through the 
13   * skins directory and builds a sorted list of <code>Skin</code> objects.  It 
14   * is manageable through the <code>SkinFactoryJMXService</code>.  The
15   * <code>SkinFactory</code> can be cached into the database for retrieval.  That
16   * way if the server crashes, it doesn't have to reload all of its skins.
17   *
18   * SkinFactory objects are accessible to all of the modules in the Newsfighter
19   * application through JMX.  They can be accessed by any module element which 
20   * implements the <code>Skinnable</code> interface.
21   *
22   * @author  N. Alex Rupp
23   */
24  public interface SkinFactory extends EJBObject {
25      
26      public void crawl() throws RemoteException; // crawl through skins directory, adding skins
27      
28      public void Assemble(String xmlFileLocation) throws RemoteException; // builds a new skin
29      
30      public Skin getSkin(int key) throws RemoteException; // returns a skin object by number
31      
32      public Skin getSkin(String name) throws RemoteException; // returns a skin object by name
33      
34      public void addSkin(Skin skin) throws RemoteException; // adds a skin to the list
35      
36      public String toString() throws RemoteException; // returns a sorted, comma separated list of skins
37      
38      public void reloadSkins() throws RemoteException; // releases and reloads all of the skins.
39      
40  }