@Override public void registerService(String serviceName, Object service) { delegate.registerService(serviceName, service); }
public <T> void registerService(Class<T> type, T instance) { wrappedAgent.registerService(type.getName(), instance); }
public Engine(IProvisioningAgent agent) { this.agent = agent; agent.registerService(ActionManager.SERVICE_NAME, new ActionManager()); }
public Engine(IProvisioningAgent agent) { this.agent = agent; agent.registerService(ActionManager.SERVICE_NAME, new ActionManager()); }
private void registerSharedAgent(IProvisioningAgent currentAgent, IProvisioningAgentProvider provider) { URI location = computeLocationSharedAgent(currentAgent, provider); if (location == null) { return; } IProvisioningAgent sharedAgent; try { sharedAgent = provider.createAgent(location); currentAgent.registerService(IProvisioningAgent.SHARED_BASE_AGENT, sharedAgent); sharedAgent.registerService(IProvisioningAgent.SHARED_CURRENT_AGENT, currentAgent); } catch (ProvisionException e) { final String msg = "Unable to instantiate p2 agent for shared location " + location; //$NON-NLS-1$ LogHelper.log(new Status(IStatus.WARNING, ID, msg, e)); } }
private void registerSharedAgent(IProvisioningAgent currentAgent, IProvisioningAgentProvider provider) { URI location = computeLocationSharedAgent(currentAgent, provider); if (location == null) { return; } IProvisioningAgent sharedAgent; try { sharedAgent = provider.createAgent(location); currentAgent.registerService(IProvisioningAgent.SHARED_BASE_AGENT, sharedAgent); sharedAgent.registerService(IProvisioningAgent.SHARED_CURRENT_AGENT, currentAgent); } catch (ProvisionException e) { final String msg = "Unable to instantiate p2 agent for shared location " + location; //$NON-NLS-1$ LogHelper.log(new Status(IStatus.WARNING, ID, msg, e)); } }
private void registerSharedAgent(IProvisioningAgent currentAgent, IProvisioningAgentProvider provider) { URI location = computeLocationSharedAgent(currentAgent, provider); if (location == null) { return; } IProvisioningAgent sharedAgent; try { sharedAgent = provider.createAgent(location); currentAgent.registerService(IProvisioningAgent.SHARED_BASE_AGENT, sharedAgent); sharedAgent.registerService(IProvisioningAgent.SHARED_CURRENT_AGENT, currentAgent); } catch (ProvisionException e) { final String msg = "Unable to instantiate p2 agent for shared location " + location; //$NON-NLS-1$ LogHelper.log(new Status(IStatus.WARNING, ID, msg, e)); } }
private void registerSharedAgent(IProvisioningAgent currentAgent, IProvisioningAgentProvider provider) { URI location = computeLocationSharedAgent(currentAgent, provider); if (location == null) { return; } IProvisioningAgent sharedAgent; try { sharedAgent = provider.createAgent(location); currentAgent.registerService(IProvisioningAgent.SHARED_BASE_AGENT, sharedAgent); sharedAgent.registerService(IProvisioningAgent.SHARED_CURRENT_AGENT, currentAgent); } catch (ProvisionException e) { final String msg = "Unable to instantiate p2 agent for shared location " + location; //$NON-NLS-1$ LogHelper.log(new Status(IStatus.WARNING, ID, msg, e)); } }
public IProvisioningAgent createAgent() { IProvisioningAgent agent = null; try { agent = agentProvider.createAgent(URIUtil.fromString(p2DataAreaURI)); } catch (ProvisionException e) { //Can't happen } catch (URISyntaxException e) { //Can't happen since we are always constructing the string from code that manipulate files (included the code in the Manipulator) } agent.registerService("FORCED_SELF", profileId); return agent; }
public IProvisioningAgent createAgent() { IProvisioningAgent agent = null; try { agent = agentProvider.createAgent(URIUtil.fromString(p2DataAreaURI)); } catch (ProvisionException e) { //Can't happen } catch (URISyntaxException e) { //Can't happen since we are always constructing the string from code that manipulate files (included the code in the Manipulator) } agent.registerService("FORCED_SELF", profileId); return agent; }
/** * Creates a new instance of the provisioning user interface. * * @param session The current provisioning session * @param profileId The profile that this user interface is operating on * @param policy The user interface policy settings to use */ public ProvisioningUI(ProvisioningSession session, String profileId, Policy policy) { this.policy = policy; this.profileId = profileId; if (profileId == null) this.profileId = IProfileRegistry.SELF; this.session = session; this.runner = new ProvisioningOperationRunner(this); // register this UI with the agent so other UI related agent services can find it session.getProvisioningAgent().registerService(ProvisioningUI.class.getName(), this); }
ourAgent.registerService(Transport.SERVICE_NAME, transport);
agent.registerService(SERVICE_SHARED_INSTALL_NEW_TIMESTAMP, Long.toString(profile.getTimestamp())); } else {
agent.registerService(SERVICE_SHARED_INSTALL_NEW_TIMESTAMP, Long.toString(profile.getTimestamp())); } else {