public void addDomainRegistryFactory(DomainRegistryFactory factory) { ServiceHelper.start(factory); factories.add(factory); }
public void addDomainRegistryFactory(DomainRegistryFactory factory) { ServiceHelper.start(factory); factories.add(factory); }
public synchronized ServletHost getServletHost() { if (host == null) { try { host = ServiceHelper.newInstance(registry, sd); ServiceHelper.start(host); } catch (Throwable e) { throw new IllegalStateException(e); } } return host; }
public synchronized void addExtensionPoint(Object extensionPoint, ServiceDeclaration declaration) { if (extensionPoint == null) { throw new IllegalArgumentException("Cannot register null as an ExtensionPoint"); } ServiceHelper.start(extensionPoint); Set<Class<?>> interfaces = getAllInterfaces(extensionPoint.getClass()); for (Class<?> i : interfaces) { registerExtensionPoint(i, extensionPoint, declaration); } }
public synchronized void addExtensionPoint(Object extensionPoint, ServiceDeclaration declaration) { if (extensionPoint == null) { throw new IllegalArgumentException("Cannot register null as an ExtensionPoint"); } ServiceHelper.start(extensionPoint); Set<Class<?>> interfaces = getAllInterfaces(extensionPoint.getClass()); for (Class<?> i : interfaces) { registerExtensionPoint(i, extensionPoint, declaration); } }
private synchronized void loadHosts() { if (loaded) { return; } try { ServiceDeclaration sd = registry.getServiceDiscovery().getServiceDeclaration(CorbaHost.class); CorbaHost host = ServiceHelper.newInstance(registry, sd); ServiceHelper.start(host); corbaHosts.add(host); } catch (Throwable e) { throw new ServiceRuntimeException(e); } }
private synchronized void loadHosts() { if (loaded) { return; } try { ServiceDeclaration sd = registry.getServiceDiscovery().getServiceDeclaration(CorbaHost.class); CorbaHost host = ServiceHelper.newInstance(registry, sd); ServiceHelper.start(host); corbaHosts.add(host); } catch (Throwable e) { throw new ServiceRuntimeException(e); } }