Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2008, 2010 VMware Inc. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html Contributors: VMware Inc. - initial contribution /
 
 
 package org.eclipse.virgo.kernel.model;
 
 import java.util.Map;
 import java.util.Set;
 
 import  org.eclipse.equinox.region.Region;
Represents an artifact in the runtime model of this system. Acts as a generic interface that delegates to more specific functionality in the running system. In all likelihood, there should be very few sub-interfaces of this interface but quite a few implementations of this interface.

Concurrent Semantics
Implementations must be threadsafe

 
 public interface Artifact {

    
Start this Artifact
 
     void start();

    
Stop this Artifact
 
     void stop();

    
Update and refresh the contents of this Artifact

Returns:
true if the refresh is successful, false if refresh is not performed
 
     boolean refresh();

    
Uninstall this Artifact
 
     void uninstall();

    
Get the type of this Artifact

Returns:
The type of this Artifact
 
     String getType();

    
Get the name of this Artifact

Returns:
The name of this Artifact
 
     String getName();

    
Get the Version of this Artifact

Returns:
The Version of this Artifact
 
     Version getVersion();
    
    
Get the Region of this Artifact or null if this artifact does not belong in a region

Returns:
the Region of this Artifact or null if this artifact does not belong in a region
 
     Region getRegion();

    
Get the state of this Artifact

Returns:
The state of this Artifact
 
     ArtifactState getState();

    
Get the Artifacts that this Artifact depends on. The dependency can be of any kind and will be determined by the type of Artifact represented.

Returns:
This Artifact's dependents
 
     Set<ArtifactgetDependents();

    
Get this Artifact's properties. This map is free to hold any properties contributed by any collaborator.

Returns:
This Artifact's properties
New to GrepCode? Check out our FAQ X