1 29 30 package nextapp.echo2.webcontainer; 31 32 import nextapp.echo2.app.util.PeerFactory; 33 34 37 public class SynchronizePeerFactory { 38 39 private static final String RESOURCE_NAME = "META-INF/nextapp/echo2/SynchronizePeerBindings.properties"; 40 private static final PeerFactory peerFactory 41 = new PeerFactory(RESOURCE_NAME, Thread.currentThread().getContextClassLoader()); 42 43 50 public static CommandSynchronizePeer getPeerForCommand(Class commandClass) { 51 return (CommandSynchronizePeer) peerFactory.getPeerForObject(commandClass, true); 52 } 53 54 61 public static ComponentSynchronizePeer getPeerForComponent(Class componentClass) { 62 return (ComponentSynchronizePeer) peerFactory.getPeerForObject(componentClass, true); 63 } 64 } 65 | Popular Tags |