Class RemoteAgent.AgentBuilder

  • Enclosing class:
    RemoteAgent

    static class RemoteAgent.AgentBuilder
    extends java.lang.Object
    Wrapper around an IProvisioningAgent with type-safe service access.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.eclipse.equinox.p2.core.IProvisioningAgent wrappedAgent  
    • Constructor Summary

      Constructors 
      Constructor Description
      AgentBuilder​(org.eclipse.equinox.p2.core.IProvisioningAgent wrappedAgent)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.eclipse.equinox.p2.core.IProvisioningAgent getAgent()  
      <T> T getService​(java.lang.Class<T> type)  
      <T> void registerService​(java.lang.Class<T> type, T instance)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • wrappedAgent

        private final org.eclipse.equinox.p2.core.IProvisioningAgent wrappedAgent
    • Constructor Detail

      • AgentBuilder

        public AgentBuilder​(org.eclipse.equinox.p2.core.IProvisioningAgent wrappedAgent)
    • Method Detail

      • getService

        public <T> T getService​(java.lang.Class<T> type)
      • registerService

        public <T> void registerService​(java.lang.Class<T> type,
                                        T instance)
      • getAgent

        public org.eclipse.equinox.p2.core.IProvisioningAgent getAgent()