private void setupCategoryClient() { if (categoryDependencyAttribute != null) { dependencyHandlerConduit.removeDependency(categoryDependencyAttribute); } if (myHyperSpacePath == null) { return; } MeemPath categoryMeemPath = MeemPath.spi.create(Space.HYPERSPACE, myHyperSpacePath); categoryDependencyAttribute = new DependencyAttribute( DependencyType.WEAK, Scope.DISTRIBUTED, categoryMeemPath, "categoryClient"); logger.log(Level.INFO, "Setting up categoryClient dependency: " + categoryDependencyAttribute); Facet facet = meemCore.getTargetFor(new CategoryClientImpl(), CategoryClient.class); dependencyHandlerConduit.addDependency(facet, categoryDependencyAttribute, LifeTime.TRANSIENT); }
private void removeCategoryClient() { dependencyHandlerConduit.removeDependency(categoryDependencyAttribute); }